Share via


SPFileSaveBinaryParameters.FileSizeToSave property

Gets and sets the amount of data to read from the stream and save, in bytes.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property FileSizeToSave As Long
    Get
    Set
'Usage
Dim instance As SPFileSaveBinaryParameters
Dim value As Long

value = instance.FileSizeToSave

instance.FileSizeToSave = value
public long FileSizeToSave { get; set; }

Property value

Type: System.Int64
The amount of data to read from the stream and save, in bytes.

Remarks

-1 means read all data, but the System.IO.Stream data must be seek-able and can provide a length. If the System.IO.Stream data is not seek-able and cannot provide a length, this value must be specified.

See also

Reference

SPFileSaveBinaryParameters class

SPFileSaveBinaryParameters members

Microsoft.SharePoint namespace