다음을 통해 공유


DefaultDocumentCollection.Add Method

Adds a DefaultDocument object to this DefaultDocumentCollection object.

Namespace:  Microsoft.Office.DocumentManagement.DocumentSets
Assembly:  Microsoft.Office.DocumentManagement (in Microsoft.Office.DocumentManagement.dll)

Syntax

'Declaration
Public Function Add ( _
    name As String, _
    ctId As SPContentTypeId, _
    content As Byte() _
) As DefaultDocument
'Usage
Dim instance As DefaultDocumentCollection
Dim name As String
Dim ctId As SPContentTypeId
Dim content As Byte()
Dim returnValue As DefaultDocument

returnValue = instance.Add(name, ctId, _
    content)
public DefaultDocument Add(
    string name,
    SPContentTypeId ctId,
    byte[] content
)

Parameters

  • content
    Type: []

    An array that contains the document contents.

Return Value

Type: Microsoft.Office.DocumentManagement.DocumentSets.DefaultDocument
An instance of the new default document.

See Also

Reference

DefaultDocumentCollection Class

DefaultDocumentCollection Members

Microsoft.Office.DocumentManagement.DocumentSets Namespace