XdmWriter.LookupPrefix MethodXdmWriter.LookupPrefix MethodXdmWriter::LookupPrefix Method

Returns the closest prefix defined in the current namespace scope for the namespace URI.

Syntax

Public Overrides Function LookupPrefix( _
    ns As String _
) As String
public override string LookupPrefix(
    string ns
)
public:
virtual String^ LookupPrefix(
    String^ ns
) override
 

Parameters

ns

Type: System.StringSystem.StringSystem::String^

The namespace URI whose prefix you want to find.

Return Value

Type: System.StringSystem.StringSystem::String^

The matching prefix or null if no matching namespace URI is found in the current scope.

Exceptions

ExceptionCondition
ArgumentExceptionArgumentExceptionArgumentException ns is either null or String.Empty.