共用方式為


DefaultDocumentCollection.Add 方法

命名空間:  Microsoft.SharePoint.Client.DocumentSet
組件:   Microsoft.SharePoint.Client.DocumentManagement.Silverlight (在 Microsoft.SharePoint.Client.DocumentManagement.Silverlight.dll 中);  Microsoft.SharePoint.Client.DocumentManagement.Phone (在 Microsoft.SharePoint.Client.DocumentManagement.Phone.dll 中)  Microsoft.SharePoint.Client.DocumentManagement (在 Microsoft.SharePoint.Client.DocumentManagement.dll 中)

語法

'宣告
Public Function Add ( _
    name As String, _
    ctId As ContentTypeId, _
    content As Byte() _
) As DefaultDocument
'用途
Dim instance As DefaultDocumentCollection
Dim name As String
Dim ctId As ContentTypeId
Dim content As Byte()
Dim returnValue As DefaultDocument

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

參數

  • content
    類型:[]

傳回值

類型:Microsoft.SharePoint.Client.DocumentSet.DefaultDocument

請參閱

參照

DefaultDocumentCollection 類別

DefaultDocumentCollection 成員

Microsoft.SharePoint.Client.DocumentSet 命名空間