DimeAttachment Constructor (String, String, TypeFormat, Stream)
Initializes a new instance of the DimeAttachment class using the specified ID, type, type format, and stream.
Namespace: Microsoft.Web.Services2.Dime
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)
Usage
'Usage
Dim id As String
Dim type As String
Dim typeFormat As TypeFormat
Dim stream As Stream
Dim dimeAttachment1 As New DimeAttachment(id, type, typeFormat, stream)
Syntax
'Declaration
Public Sub New( _
ByVal id As String, _
ByVal type As String, _
ByVal typeFormat As TypeFormat, _
ByVal stream As Stream _
)
public DimeAttachment(
string id,
string type,
TypeFormat typeFormat,
Stream stream
);
public: DimeAttachment(
String^ id,
String^ type,
TypeFormat^ typeFormat,
Stream^ stream
);
public DimeAttachment(
System.String id,
System.String type,
TypeFormat typeFormat,
Stream stream
);
public function DimeAttachment(
id : String,
type : String,
typeFormat : TypeFormat,
stream : Stream
);
Parameters
- id
The unique ID for the DIME record.
- type
The payload type in the DIME record.
- typeFormat
One of the TypeFormat values.
- stream
The System.IO.Stream for reading or writing the payload data.
Remarks
The format of the type parameter is specified by the typeFormat parameter. For example, if typeFormat is MediaType then a valid type is "plain/text; charset= utf-8".
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
DimeAttachment Class
Microsoft.Web.Services2.Dime Namespace