QName Constructor (string, string, string)QName Constructor (String, String, String)QName Constructor (String^, String^, String^)

Initializes a new instance of the QNameQNameQName structure with the specified prefix, local name and namespace URI.

Syntax

Public Sub New ( _
    prefix As String, _
    localName As String, _
    ns As String _
)
public QName(
    string prefix,
    string localName,
    string ns
)
public:
QName(
    String^ prefix, 
    String^ localName, 
    String^ ns
)
 

Parameters

prefix

Type: System.StringSystem.StringSystem::String^

The prefix of the qualified name.

localName

Type: System.StringSystem.StringSystem::String^

The local part of the qualified name.

ns

Type: System.StringSystem.StringSystem::String^

The namespace URI of the qualified name. This can be set to null a null reference (Nothing in Visual Basic) nullptr for an unresolved QNameQNameQName

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullException prefix or localName is null a null reference (Nothing in Visual Basic) nullptr