SPUserCodeAssemblyFileDefinition.FileStream Property
A stream containing the contents of the file.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Property FileStream As Stream
Get
Set
'Usage
Dim instance As SPUserCodeAssemblyFileDefinition
Dim value As Stream
value = instance.FileStream
instance.FileStream = value
public Stream FileStream { get; set; }
Property Value
Type: System.IO.Stream
Returns Stream.
Remarks
Only one definition of the file content can exist. Therefore only one property, the FileContents property or the FileStream property, can define the file content. If both properties are a null reference (Nothing in Visual Basic) (Nothing in Visual Basic) or empty, then the file definition will be rejected.
See Also
Reference
SPUserCodeAssemblyFileDefinition Class