PowerTCP Mail for .NET
Resource Constructor(Stream,String)




Used to initialize Content. The user is responsible for closing this Stream after use.
Used to initialize ContentType.Name. Can be null.
Constructor used to create a new Resource and associate it with existing binary data from a Stream.
Syntax
Public Function New( _
   ByVal content As Stream, _
   ByVal name As String _
)
Dim content As Stream
Dim name As String
 
Dim instance As New Resource(content, name)
public Resource( 
   Stream content,
   string name
)
public: Resource( 
   Stream* content,
   string* name
)
public:
Resource( 
   Stream^ content,
   String^ name
)

Parameters

content
Used to initialize Content. The user is responsible for closing this Stream after use.
name
Used to initialize ContentType.Name. Can be null.
Remarks
ContentType.MediaType is set using GetMediaTypeFromExtension.
See Also

Reference

Resource Class
Resource Members
Overload List


PowerTCP Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic