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
- filename
Type: Microsoft.SharePoint.Client.ResourcePath
- contentStream
Type: System.IO.Stream
Return value
Type: Microsoft.SharePoint.Client.Attachment