Επεξεργασία

Κοινή χρήση μέσω


ApplicationTrustCollection.Item[] Property

Definition

Gets an ApplicationTrust object from the collection.

Overloads

Item[Int32]

Gets the ApplicationTrust object located at the specified index in the collection.

Item[String]

Gets the ApplicationTrust object for the specified application.

Item[Int32]

Source:
ApplicationTrustCollection.cs
Source:
ApplicationTrustCollection.cs
Source:
ApplicationTrustCollection.cs
Source:
ApplicationTrustCollection.cs

Gets the ApplicationTrust object located at the specified index in the collection.

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

Parameters

index
Int32

The zero-based index of the object within the collection.

Property Value

The ApplicationTrust object at the specified index in the collection.

Attributes

Exceptions

index is greater than or equal to the count of objects in the collection.

index is negative.

Remarks

Use this method to get a ApplicationTrust object from the ApplicationTrustCollection at the specified index.

Applies to

Item[String]

Source:
ApplicationTrustCollection.cs
Source:
ApplicationTrustCollection.cs
Source:
ApplicationTrustCollection.cs
Source:
ApplicationTrustCollection.cs

Gets the ApplicationTrust object for the specified application.

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

Parameters

appFullName
String

The full name of the application.

Property Value

The ApplicationTrust object for the specified application, or null if the object cannot be found.

Attributes

Remarks

The ApplicationIdentity property of each ApplicationTrust object in the collection is examined for a FullName property value that matches the application specified by the appFullName parameter.

Applies to