XmlSerializationWriter.FromXmlName(String) 方法
定义
通过使用转义序列替换无效字符,对一个有效的 XML 名称进行编码。Encodes a valid XML name by replacing characters that are not valid with escape sequences.
此 API 支持产品基础结构,不能在代码中直接使用。
protected:
static System::String ^ FromXmlName(System::String ^ name);
protected static string? FromXmlName (string? name);
protected static string FromXmlName (string name);
static member FromXmlName : string -> string
Protected Shared Function FromXmlName (name As String) As String
参数
- name
- String
要用作 XML 名称的字符串。A string to be used as an XML name.
返回
已编码的字符串。An encoded string.
注解
的受保护成员 XmlSerializationWriter 仅供在 .NET FRAMEWORK XML 序列化基础结构内部使用的派生类使用。The protected members of XmlSerializationWriter are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.
此 FromXmlName 方法是静态的。The FromXmlName method is static.