System.Security.SecurityElement Members

The members of System.Security.SecurityElement are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Security.SecurityElement class with the specified tag.

Initializes a new instance of the System.Security.SecurityElement class with the specified tag and text.

Public Properties

AttributesHashtable.

Gets or sets the attributes of an XML element as name/value pairs.

ChildrenArrayList.

Gets or sets the array of child elements of the XML element.

Tagstring.

Gets or sets the tag name of an XML element.

Textstring.

Gets or sets the text within an XML element.

Public Methods

AddAttribute(string, string)

Adds a name/value attribute to an XML element.

AddChild(SecurityElement)

Adds a child element to the XML element.

Attribute(string) : string

Finds an attribute by name in an XML element.

Copy() : SecurityElement

Creates and returns an identical copy of the current System.Security.SecurityElement object.

Equal(SecurityElement) : bool

Compares two XML element objects for equality.

static
Escape(string) : string

Replaces invalid XML characters in a string with their valid XML equivalent.

static
FromString(string) : SecurityElement

Creates a security element from an XML-encoded string.

static
IsValidAttributeName(string) : bool

Determines whether a string is a valid attribute name.

static
IsValidAttributeValue(string) : bool

Determines whether a string is a valid attribute value.

static
IsValidTag(string) : bool

Determines whether a string is a valid tag.

static
IsValidText(string) : bool

Determines whether a string is valid as text within an XML element.

SearchForChildByTag(string) : SecurityElement

Finds a child by its tag name.

SearchForTextOfTag(string) : string

Finds a child by its tag name and returns the contained text.

override
ToString() : string

Produces a string representation of an XML element and its constituent attributes, child elements, and text.