QName.Split Method (string, out string, out string)QName.Split Method (String, ByRef String, ByRef String)QName::Split Method (String^, String^%, String^%)

Splits the specified lexical representation of an xs:QName into a prefix and local name.

Syntax

Public Shared Sub Split( _
    qualifiedName As String, _
    <Out>prefix As ByRef String, _
    <Out>localName As ByRef String _
)
public static void Split(
    string qualifiedName,
    out string prefix,
    out string localName
)
public:
static void Split(
    String^ qualifiedName, 
    [Out] String^% prefix, 
    [Out] String^% localName
)
 

Parameters

qualifiedName

Type: System.StringSystem.StringSystem::String^

The lexical representation of an xs:QName.

prefix

Type: out System.StringByRef System.StringSystem::String^%

When this method returns, contains the prefix of the qualified name, or null a null reference (Nothing in Visual Basic) nullptr if the qualified name has no prefix.

localName

Type: out System.StringByRef System.StringSystem::String^%

When this method returns, contains the local part of the qualified name.

Exceptions

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

Remarks

This method does not check that qualifiedName is a valid lexical representation of an xs:qName.