System.Security.SecurityElement: Method Members

The methods of System.Security.SecurityElement are listed below. For a list of all members, see the SecurityElement Members list.

See Also: Inherited members from System.Object

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.