SecurityElement

SecurityElement


Provides simple XML text management capabilities.


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 VBCorLib Overview | SecurityElementStatic

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
 AddAttributeAdds an attribute to the set of attributes for this SecurityElement. 
 AddChildAdds a new child to the SecurityElement. 
 CopyReturns a copy of the SecurityElement object. 
 EqualsThis 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. 
 GetAttributeSearches for the specified attribute and returns the value or an empty string. 
 GetHashCodeReturns 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. 
 SearchForChildByTagSearches for a child element by tag name. 
 SearchForTextOfTagSearches for the text of a child with the specified tag name. 
 ToStringReturns a string representation of this object instance. The default method simply returns the application name and class name in which this class resides.