XdmWriterSettings.DefaultMediaType MethodXdmWriterSettings.DefaultMediaType MethodXdmWriterSettings::DefaultMediaType Method

Returns the default media type for the specified output method with name specified by methodName.

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

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptionmethodName is null a null reference (Nothing in Visual Basic) nullptr.