When overridden in a derived class, returns the closest prefix defined in the current namespace scope for the namespace URI.
![]()
The matching prefix or null if no matching namespace URI is found in the current scope.
Type Reason ArgumentException ns is null or string.Empty.