<PackageReference Include="System.Security.Permissions" Version="9.0.5" />

ApplicationTrustCollection

Represents a collection of ApplicationTrust objects. This class cannot be inherited.
public int Count { get; }

Gets the number of items contained in the collection.

public bool IsSynchronized { get; }

Gets a value indicating whether access to the collection is synchronized (thread safe).

public ApplicationTrust this[int index] { get; }

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

public ApplicationTrust this[string appFullName] { get; }

Gets the ApplicationTrust object for the specified application.

public object SyncRoot { get; }

Gets an object that can be used to synchronize access to the collection.

public int Add(ApplicationTrust trust)

Adds an element to the collection.

public void AddRange(ApplicationTrust[] trusts)

Copies the elements of the specified ApplicationTrust array to the end of the collection.

Copies the elements of the specified ApplicationTrustCollection to the end of the collection.

public void Clear()

Removes all the application trusts from the collection.

public void CopyTo(ApplicationTrust[] array, int index)

Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array.

Gets the application trusts in the collection that match the specified application identity.

Returns an object that can be used to iterate over the collection.

public void Remove(ApplicationTrust trust)

Removes the specified application trust from the collection.

public void Remove(ApplicationIdentity applicationIdentity, ApplicationVersionMatch versionMatch)

Removes all application trust objects that match the specified criteria from the collection.

public void RemoveRange(ApplicationTrust[] trusts)

Removes the application trust objects in the specified array from the collection.

Removes the application trust objects in the specified collection from the collection.