ApplicationTrustCollection.Item[] Eigenschaft

Definition

Ruft ein ApplicationTrust-Objekt aus der Auflistung ab.

Überlädt

Item[Int32]

Ruft das ApplicationTrust-Objekt am angegebenen Index in der Auflistung ab.

Item[String]

Ruft das ApplicationTrust-Objekt für die angegebene Anwendung ab.

Item[Int32]

Ruft das ApplicationTrust-Objekt am angegebenen Index in der Auflistung ab.

public:
 property System::Security::Policy::ApplicationTrust ^ default[int] { System::Security::Policy::ApplicationTrust ^ get(int index); };
public System.Security.Policy.ApplicationTrust this[int index] { get; }
public System.Security.Policy.ApplicationTrust this[int index] { [System.Security.SecurityCritical] get; }
member this.Item(int) : System.Security.Policy.ApplicationTrust
[<get: System.Security.SecurityCritical>]
member this.Item(int) : System.Security.Policy.ApplicationTrust
Default Public ReadOnly Property Item(index As Integer) As ApplicationTrust

Parameter

index
Int32

Der nullbasierte Index des Objekts in der Auflistung.

Eigenschaftswert

ApplicationTrust

Das ApplicationTrust-Objekt am angegebenen Index in der Auflistung.

Attribute

Ausnahmen

index ist größer als die Anzahl oder gleich der Anzahl von Objekten in der Auflistung.

index ist ein negativer Wert.

Hinweise

Verwenden Sie diese Methode, um ein ApplicationTrust Objekt aus dem ApplicationTrustCollection angegebenen Index abzurufen.

Gilt für

Item[String]

Ruft das ApplicationTrust-Objekt für die angegebene Anwendung ab.

public:
 property System::Security::Policy::ApplicationTrust ^ default[System::String ^] { System::Security::Policy::ApplicationTrust ^ get(System::String ^ appFullName); };
public System.Security.Policy.ApplicationTrust this[string appFullName] { get; }
public System.Security.Policy.ApplicationTrust this[string appFullName] { [System.Security.SecurityCritical] get; }
member this.Item(string) : System.Security.Policy.ApplicationTrust
[<get: System.Security.SecurityCritical>]
member this.Item(string) : System.Security.Policy.ApplicationTrust
Default Public ReadOnly Property Item(appFullName As String) As ApplicationTrust

Parameter

appFullName
String

Der vollständige Name der Anwendung.

Eigenschaftswert

ApplicationTrust

Das ApplicationTrust-Objekt für die angegebene Anwendung oder null, wenn das Objekt nicht gefunden werden kann.

Attribute

Hinweise

Die ApplicationIdentity Eigenschaft jedes ApplicationTrust Objekts in der Auflistung wird auf einen FullName Eigenschaftswert untersucht, der der vom appFullName Parameter angegebenen Anwendung entspricht.

Gilt für