[This is preliminary documentation and is subject to change.]
Returns true when supplied name can be used for XML node naming (node names, attribute names)
Namespace: NFXAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public static bool IsValidXMLName(
this string name
)
public static bool IsValidXMLName(
this string name
)
<ExtensionAttribute>
Public Shared Function IsValidXMLName (
name As String
) As Boolean
<ExtensionAttribute>
Public Shared Function IsValidXMLName (
name As String
) As Boolean
public:
[ExtensionAttribute]
static bool IsValidXMLName(
String^ name
)
public:
[ExtensionAttribute]
static bool IsValidXMLName(
String^ name
)
static member IsValidXMLName :
name : string -> bool
static member IsValidXMLName :
name : string -> bool
Return Value
Type:
BooleanUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).