次の方法で共有


SPUserCodeAssemblyFileDefinition.FileContents property

Gets or sets an array of bytes that contains the contents of a file.

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

Syntax

'Declaration
Public Property FileContents As Byte()
    Get
    Set
'Usage
Dim instance As SPUserCodeAssemblyFileDefinition
Dim value As Byte()

value = instance.FileContents

instance.FileContents = value
public byte[] FileContents { get; set; }

Property value

Type: []
An array that contains the contents of the file.

Remarks

Between the FileContents property and FileStream property there can be only one file definition for the file content. One of these two properties must contain the file data, but never both. If both are a null reference (Nothing in Visual Basic) or empty, then the file definition will be rejected. Likewise, if both properties contain data, the file definition will also be rejected.

See also

Reference

SPUserCodeAssemblyFileDefinition class

SPUserCodeAssemblyFileDefinition members

Microsoft.SharePoint.Administration namespace