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
name
Type: System.StringThe name of the document to be added.
ctId
Type: Microsoft.SharePoint.SPContentTypeIdA struct that uniquely identifies the content type of the document to be added.
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