Attachment Constructor (String, String, Stream)

Initializes a new instance of the Attachment class using the unique identifier, content type, and stream.

Namespace: Microsoft.Web.Services2.Attachments
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)

Usage

'Usage
Dim id As String
Dim type As String
Dim stream As Stream
Dim attachment1 As New Attachment(id, type, stream)

Syntax

'Declaration
Public Sub New( _
    ByVal id As String, _
    ByVal type As String, _
    ByVal stream As Stream _
)
public Attachment(
    string id, 
    string type, 
    Stream stream
);
public: Attachment(
    String^ id, 
    String^ type, 
    Stream^ stream
);
public Attachment(
    System.String id, 
    System.String type, 
    Stream stream
);
public function Attachment(
     id : String, 
     type : String, 
     stream : Stream
);

Parameters

  • id
    The unique ID for the DIME record.
  • type
    The type of payload in the DIME record.
  • stream
    The System.IO.Stream for reading or writing the payload data.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone

See Also

Reference

Attachment Class
Microsoft.Web.Services2.Attachments Namespace

Other Resources

Attachment Members