System::Security::SecurityElement 类

SecurityElement class

用于编码安全对象的 XML 对象模型。未实现。此类的对象只能使用 System::MakeObject() 函数分配。切勿在栈上或使用 operator new 创建此类型的实例,因为这会导致运行时错误和/或断言故障。始终将此类包装在 System::SmartPtr 指针中,并使用该指针将其作为参数传递给函数。

class SecurityElement : public System::Object

方法

方法描述
AddAttribute(const String&, const String&)向标签添加属性。
AddChild(SecurityElement)添加子标签。
Attribute(const String&)获取属性值。
Copy()克隆标签。
Equal(SecurityElement)检查参数是否相等。
static Escape(const String&)转义 XML 字符串中的字符。
static FromString(const String&)从 XML 代码创建元素。
get_Attributes()获取标签属性。
get_Children()获取标签子对象。
get_Tag()获取标签名称。
get_Text()获取标签的内部文本。
static IsValidAttributeName(const String&)检查属性名称是否有效。
static IsValidAttributeValue(const String&)检查属性值是否有效。
static IsValidTag(const String&)检查标签是否有效。
static IsValidText(const String&)检查文本是否有效。
SearchForChildByTag(const String&)按名称获取子标签。
SearchForTextOfTag(const String&)按标签名称获取子标签的内部文本。
SecurityElement(const String&)构造函数。
SecurityElement(const String&, const String&)构造函数。
set_Attributes(System::Collections::Generic::Dictionary<String, String>)设置标签属性。
set_Children(System::Collections::Generic::List<SecurityElement>)设置标签子对象。
set_Tag(const String&)设置标签名称。
set_Text(const String&)设置标签内部文本。
ToString() const override将标签转换为字符串。

另见