LookupPrefix Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
When overridden in a derived class, returns the closest prefix defined in the current namespace scope for the namespace URI.
Namespace: System.Ext.Xml
Assembly: MFDpwsExtensions (in MFDpwsExtensions.dll)
Syntax
'Declaration
Public Function LookupPrefix ( _
ns As String _
) As String
public string LookupPrefix(
string ns
)
public:
String^ LookupPrefix(
String^ ns
)
member LookupPrefix :
ns:string -> string
public function LookupPrefix(
ns : String
) : String
Parameters
- ns
Type: System. . :: . .String
The namespace URI whose prefix you want to find.
Return Value
Type: System. . :: . .String
The matching prefix or nullNothingnullptrunita null reference (Nothing in Visual Basic) if no matching namespace URI is found in the current scope.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.