XdmWriterSettings.DefaultMediaType MethodXdmWriterSettings.DefaultMediaType MethodXdmWriterSettings::DefaultMediaType Method
Returns the default media type for the specified output method with name specified by
methodName.
- Namespace: XmlPrime.SerializationXmlPrime.SerializationXmlPrime.Serialization
- Assembly: XmlPrime (in XmlPrime.dll)
Syntax
Public Shared Function DefaultMediaType( _ methodName As System.Xml.XmlQualifiedName _ ) As String
public static string DefaultMediaType( System.Xml.XmlQualifiedName methodName )
public: static String^ DefaultMediaType( System.Xml::XmlQualifiedName^ methodName )
Parameters
- methodName
Type: System.Xml.XmlQualifiedNameSystem.Xml.XmlQualifiedNameSystem.Xml::XmlQualifiedName^
The qualified name of the output method.
Return Value
Type: System.StringSystem.StringSystem::String^
The default media type for the specified output method, or text/xml
if the method is not known.
Exceptions
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException | methodName is null
a null reference (Nothing in Visual Basic)
nullptr . |
Remarks
The default media type isapplication/xhtml+xml
for XHtmlOutputMethodXHtmlOutputMethodXHtmlOutputMethod,
text/html
for HtmlOutputMethodHtmlOutputMethodHtmlOutputMethod, text/plain
for TextOutputMethodTextOutputMethodTextOutputMethod,
and text/xml
for XmlOutputMethodXmlOutputMethodXmlOutputMethod and CanonicalOutputMethodCanonicalOutputMethodCanonicalOutputMethod.