SecurityElement

SecurityElement


Provides simple XML text management capabilities.


Implements:

IObject 

Public:

Properties:

NameDescription
 Attributes (get) Returns any attributes contained within the xml element.  
 Attributes (set) Sets the attributes for this xml element.  
 Children (get) Returns a list of child SecurityElement objects.  
 Children (set) Sets the list of children SecurityElements for this element.  
 Tag (get) Returns the tag name for this SecurityElement.  
 Tag (let) Sets the tag name for this SecurityElement.  
 Text (get) Returns the text between the opening and closing element tags.  
 Text (let) Sets the text between the opening and closing element tags.  

Methods:

NameDescription
 AddAttribute Adds an attribute to the set of attributes for this SecurityElement.  
 AddChild Adds a new child to the SecurityElement.  
 Copy Returns a copy of the SecurityElement object.  
 Equal Compares two SecurityElement instances for equality.  
 Equals This function determines if the value passed in is the same as the current object instance. Meaning, are the Value and this object the same object in memory.  
 GetAttribute Searches for the specified attribute and returns the value or an empty string.  
 GetHashCode Returns a psuedo-unique number used to help identify this object in memory. The current method is to return the value obtained from ObjPtr. If a different method needs to be impelmented then change the method here in this function.  
 SearchForChildByTag Searches for a child element by tag name.  
 SearchForTextOfTag Searches for the text of a child with the specified tag name.  
 ToString Returns a string representation of this object instance. The default method simply returns the application name and class name in which this class resides.  

Remarks

This class is primarily used to assist with the RSACryptoServiceProvider and DSACryptoServiceProvider classes when dealing with the keys as xml parameters. It is not meant for serious xml text manipulation.

See Also

Project CorLib Overview

Class SecurityElement Overview

SecurityElementStatic