Attachment.GetStream Method

Gets the contents of the attachment.

Namespace:  Microsoft.Office.SharePointWorkspace.AddIn.Data
Assembly:  Microsoft.Office.SharePointWorkspace.AddIn.Data (in Microsoft.Office.SharePointWorkspace.AddIn.Data.dll)

Syntax

'Declaration
Public Function GetStream As Stream
'Usage
Dim instance As Attachment
Dim returnValue As Stream

returnValue = instance.GetStream()
public Stream GetStream()

Return Value

Type: System.IO.Stream
The contents of the attachment.

Remarks

Test the ContentState property before calling this method. If the content state is Current, this method returns the current contents of the attachment. If the content state is Old, the workspace has not received the latest contents of the attachment and this method returns obsolete contents. If the content state is None, the workspace has not yet received the contents of this attachment.

See Also

Reference

Attachment Class

Attachment Members

Microsoft.Office.SharePointWorkspace.AddIn.Data Namespace