ContentType Constructor(String,String)
In This Topic
Constructor for initialising content description
Syntax
'Declaration
Public Function New( _
ByVal MainType As System.String, _
ByVal As System.String _
)
'Usage
Dim MainType As System.String
Dim SubType As System.String
Dim instance As New ContentType(MainType, SubType)
public ContentType(
System.string MainType,
System.string
)
public ContentType(
MainType: System.String;
: System.String
);
public function ContentType(
MainType : System.String,
: System.String
);
public: ContentType(
System.string* MainType,
System.string*
)
public:
ContentType(
System.String^ MainType,
System.String^
)
Parameters
- MainType
- MIME type for the media
- SubType
- Actual MIME type if it is a multipart media
Requirements
Target Platforms: .NET CLR 4.8 or higher
See Also