SecurityElement Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy SecurityElement.

Przeciążenia

Nazwa Opis
SecurityElement(String)

Inicjuje nowe wystąpienie SecurityElement klasy przy użyciu określonego tagu.

SecurityElement(String, String)

Inicjuje nowe wystąpienie SecurityElement klasy z określonym tagiem i tekstem.

SecurityElement(String)

Źródło:
SecurityElement.cs
Źródło:
SecurityElement.cs
Źródło:
SecurityElement.cs
Źródło:
SecurityElement.cs
Źródło:
SecurityElement.cs

Inicjuje nowe wystąpienie SecurityElement klasy przy użyciu określonego tagu.

public:
 SecurityElement(System::String ^ tag);
public SecurityElement(string tag);
new System.Security.SecurityElement : string -> System.Security.SecurityElement
Public Sub New (tag As String)

Parametry

tag
String

Nazwa tagu elementu XML.

Wyjątki

Parametr tag jest null.

Parametr tag jest nieprawidłowy w formacie XML.

Przykłady

Poniższy kod przedstawia użycie konstruktora SecurityElement do utworzenia nowego SecurityElement obiektu. Ten przykład kodu jest częścią większego przykładu udostępnionego dla klasy SecurityElement.

SecurityElement windowsRoleElement =
    new SecurityElement("WindowsMembership.WindowsRole");
Dim windowsRoleElement As New SecurityElement("WindowsMembership.WindowsRole")

Uwagi

Parametr tag musi zawierać prawidłową nazwę tagu XML. Użyj Escape polecenia , aby usunąć nieprawidłowe znaki z ciągu.

Dotyczy

SecurityElement(String, String)

Źródło:
SecurityElement.cs
Źródło:
SecurityElement.cs
Źródło:
SecurityElement.cs
Źródło:
SecurityElement.cs
Źródło:
SecurityElement.cs

Inicjuje nowe wystąpienie SecurityElement klasy z określonym tagiem i tekstem.

public:
 SecurityElement(System::String ^ tag, System::String ^ text);
public SecurityElement(string tag, string? text);
public SecurityElement(string tag, string text);
new System.Security.SecurityElement : string * string -> System.Security.SecurityElement
Public Sub New (tag As String, text As String)

Parametry

tag
String

Nazwa tagu elementu XML.

text
String

Zawartość tekstowa w elemecie .

Wyjątki

Parametr tag jest null.

Parametr tag lub text parametr jest nieprawidłowy w formacie XML.

Uwagi

Jeśli parametr jest text tym konstruktoremnull, tworzy element identyczny z konstruktorem bez parametrów.

Dotyczy