If known returns a canonical prefix for a given XML namespace

Namespace: Composite.Core.Xml
Assembly: Composite (in Composite.dll) Version: 6.1.6325.31818

Syntax

C#
public static bool TryGetCanonicalPrefix(
	XNamespace xmlns,
	out string prefix
)
Visual Basic
Public Shared Function TryGetCanonicalPrefix ( _
	xmlns As XNamespace, _
	<OutAttribute> ByRef prefix As String _
) As Boolean
Visual C++
public:
static bool TryGetCanonicalPrefix(
	XNamespace^ xmlns, 
	[OutAttribute] String^% prefix
)

Parameters

xmlns
Type: System.Xml.Linq..::..XNamespace
Namespace to match
prefix
Type: System..::..String%
prefix for namespace, if any

Return Value

True when a prefix was found, otherwise false

See Also