Method LookupPrefix
- Namespace
- Alternet.FormDesigner.Wpf.XamlDom
- Assembly
- Alternet.FormDesigner.Wpf.v10.dll
LookupPrefix(string)
When overridden in a derived class, returns the closest prefix defined in the current namespace scope for the namespace URI.
public override string LookupPrefix(string ns)
Parameters
ns
stringThe namespace URI whose prefix you want to find.
Returns
- string
The matching prefix or null if no matching namespace URI is found in the current scope.
Exceptions
- ArgumentException
ns
is either null or String.Empty.- InvalidOperationException
An XmlWriter method was called before a previous asynchronous operation finished. In this case, InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.”