XdmWriter.LookupPrefix MethodXdmWriter.LookupPrefix MethodXdmWriter::LookupPrefix Method
Returns the closest prefix defined in the current namespace scope for the namespace URI.
- Namespace: XmlPrime.SerializationXmlPrime.SerializationXmlPrime.Serialization
- Assembly: XmlPrime (in XmlPrime.dll)
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
Exception | Condition |
ArgumentExceptionArgumentExceptionArgumentException | ns is either null or String.Empty. |