XdmWriterSettings.MediaType PropertyXdmWriterSettings.MediaType PropertyXdmWriterSettings::MediaType Property
- Namespace: XmlPrime.SerializationXmlPrime.SerializationXmlPrime.Serialization
 - Assembly: XmlPrime (in XmlPrime.dll)
 
Exceptions
| Exception | Condition | 
| XdmExceptionXdmExceptionXdmException | 
              An SEPM0016 error is raised if an invalid media-type setting is attempted.
             | 
Remarks
This property corresponds to the media-type serialization parameter.
                The value of this property is used in the generated content-type declaration if the 
                IncludeContentTypeIncludeContentTypeIncludeContentType is set to trueTruetrue and MethodMethodMethod is 
                HtmlOutputMethodHtmlOutputMethodHtmlOutputMethod or XHtmlOutputMethodXHtmlOutputMethodXHtmlOutputMethod.  It may also be used to annotate the
                serialized data, for example in an HTTP request.
              
The charset parameter of the media type must not be
                specified explicitly in the value of the of MediaTypeMediaTypeMediaType, instead it should be set via the
                EncodingEncodingEncoding property.
              
                If the value of this property is null
    a null reference (Nothing in Visual Basic)
  nullptr then the default media type as defined by
                DefaultMediaTypeDefaultMediaTypeDefaultMediaType for the current output method is used.
                The default value of this property is null
    a null reference (Nothing in Visual Basic)
  nullptr.
              
