Attachment Constructor (String, Stream)

Initializes a new instance of the Attachment class using the specified content type and stream.

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

Usage

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

Syntax

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

Parameters

  • 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