Share via


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

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

See Also

Reference

XmlWriter Class

System.Ext.Xml Namespace