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)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.MarshalByRefObject)> _
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)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.MarshalByRefObject)]
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