Condividi tramite


AttachmentCollection.AddUsingPath method

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

Syntax

'Declaration
Public Function AddUsingPath ( _
    filename As ResourcePath, _
    contentStream As Stream _
) As Attachment
'Usage
Dim instance As AttachmentCollection
Dim filename As ResourcePath
Dim contentStream As Stream
Dim returnValue As Attachment

returnValue = instance.AddUsingPath(filename, _
    contentStream)
public Attachment AddUsingPath(
    ResourcePath filename,
    Stream contentStream
)

Parameters

Return value

Type: Microsoft.SharePoint.Client.Attachment

See also

Reference

AttachmentCollection class

AttachmentCollection members

Microsoft.SharePoint.Client namespace