XmlConvert.EncodeNmToken(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 the name is valid according to the XML specification.
public:
static System::String ^ EncodeNmToken(System::String ^ name);
public static string EncodeNmToken (string name);
public static string? EncodeNmToken (string? name);
static member EncodeNmToken : string -> string
Public Shared Function EncodeNmToken (name As String) As String
Parameters
- name
- String
The name to be encoded.
Returns
The encoded name.
Remarks
This method guarantees that the name is valid according to the XML specification. For example, if you passed this method the invalid name 70+, it returns 70_x002b_ which is a valid XML name.
If name
is null
or String.Empty then you get the same value returned.
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.