Bewerken

Share via


KeyContainerPermissionAccessEntryCollection Class

Definition

Caution

Code Access Security is not supported or honored by the runtime.

Represents a collection of KeyContainerPermissionAccessEntry objects. This class cannot be inherited.

public ref class KeyContainerPermissionAccessEntryCollection sealed : System::Collections::ICollection
[System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public sealed class KeyContainerPermissionAccessEntryCollection : System.Collections.ICollection
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public sealed class KeyContainerPermissionAccessEntryCollection : System.Collections.ICollection
public sealed class KeyContainerPermissionAccessEntryCollection : System.Collections.ICollection
[<System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type KeyContainerPermissionAccessEntryCollection = class
    interface ICollection
    interface IEnumerable
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Serializable>]
type KeyContainerPermissionAccessEntryCollection = class
    interface ICollection
    interface IEnumerable
type KeyContainerPermissionAccessEntryCollection = class
    interface ICollection
    interface IEnumerable
Public NotInheritable Class KeyContainerPermissionAccessEntryCollection
Implements ICollection
Inheritance
KeyContainerPermissionAccessEntryCollection
Attributes
Implements

Remarks

Caution

Code Access Security (CAS) has been deprecated across all versions of .NET Framework and .NET. Recent versions of .NET do not honor CAS annotations and produce errors if CAS-related APIs are used. Developers should seek alternative means of accomplishing security tasks.

KeyContainerPermissionAccessEntry objects specify access rights for specific key containers.

Constructors

KeyContainerPermissionAccessEntryCollection()

Initializes a new instance of the KeyContainerPermissionAccessEntryCollection class.

Properties

Count

Gets the number of items in the collection.

IsSynchronized

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

Item[Int32]

Gets the item at the specified index in the collection.

SyncRoot

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

Methods

Add(KeyContainerPermissionAccessEntry)

Adds a KeyContainerPermissionAccessEntry object to the collection.

Clear()

Removes all the KeyContainerPermissionAccessEntry objects from the collection.

CopyTo(Array, Int32)

Copies the elements of the ICollection to an Array, starting at a particular Array index.

CopyTo(KeyContainerPermissionAccessEntry[], Int32)

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

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator()

Returns a KeyContainerPermissionAccessEntryEnumerator object that can be used to iterate through the objects in the collection.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
IndexOf(KeyContainerPermissionAccessEntry)

Gets the index in the collection of the specified KeyContainerPermissionAccessEntry object, if it exists in the collection.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(KeyContainerPermissionAccessEntry)

Removes the specified KeyContainerPermissionAccessEntry object from the collection.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32)

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

IEnumerable.GetEnumerator()

Returns a KeyContainerPermissionAccessEntryEnumerator object that can be used to iterate through the objects in the collection.

Extension Methods

Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to

See also