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
file
Type: System.IO.StreamA System.IO.Stream object that contains the file.
checkRequiredFields
Type: System.Booleantrue to check required fields when saving the file; otherwise, false.