XmlConvert.VerifyNCName(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Verifies that the name is a valid NCName
according to the W3C Extended Markup Language recommendation. An NCName
is a name that cannot contain a colon.
public:
static System::String ^ VerifyNCName(System::String ^ name);
public static string VerifyNCName (string name);
static member VerifyNCName : string -> string
Public Shared Function VerifyNCName (name As String) As String
Parameters
- name
- String
The name to verify.
Returns
The name, if it is a valid NCName.
Exceptions
name
is null
or Empty.
name
is not a valid non-colon name.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.