SecurityElement Constructor (String, String)
Collapse the table of content
Expand the table of content

SecurityElement Constructor (String, String)

.NET Framework 1.1

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

[Visual Basic]
Public Sub New( _
   ByVal tag As String, _
   ByVal text As String _
)
[C#]
public SecurityElement(
   string tag,
 string text
);
[C++]
public: SecurityElement(
   String* tag,
 String* text
);
[JScript]
public function SecurityElement(
   tag : String,
 text : String
);

Parameters

tag
The tag name of the XML element.
text
The text content within the element.

Exceptions

Exception Type Condition
ArgumentNullException The tag parameter is a null reference (Nothing in Visual Basic).
ArgumentException The tag parameter or text parameter is invalid in XML.

Remarks

If the text parameter is a null reference (Nothing in Visual Basic) this constructor produces an element identical to the default constructor.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

SecurityElement Class | SecurityElement Members | System.Security Namespace | SecurityElement Constructor Overload List

Show:
© 2016 Microsoft