SPFile.SaveBinary method (Stream, Boolean)

Saves the file in binary format based on the specified stream and a Boolean value that specifies whether to check required fields.

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

Syntax

'Declaration
Public Sub SaveBinary ( _
    file As Stream, _
    checkRequiredFields As Boolean _
)
'Usage
Dim instance As SPFile
Dim file As Stream
Dim checkRequiredFields As Boolean

instance.SaveBinary(file, checkRequiredFields)
public void SaveBinary(
    Stream file,
    bool checkRequiredFields
)

Parameters

  • checkRequiredFields
    Type: System.Boolean

    true to check required fields when saving the file; otherwise, false.

See also

Reference

SPFile class

SPFile members

SaveBinary overload

Microsoft.SharePoint namespace