Share via


SPUserCodeAssemblyFileDefinition.FileStream property

A stream containing the contents of the file.

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

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

SPUserCodeAssemblyFileDefinition members

Microsoft.SharePoint.Administration namespace