КриптоПро .NET
Search Results for

    Показать/Скрыть содержание

    Class CpReferenceList

    Inheritance
    object
    CpReferenceList
    Implements
    IList
    ICollection
    IEnumerable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: CryptoPro.Security.Cryptography.Xml
    Assembly: CryptoPro.Security.Cryptography.Xml.dll
    Syntax
    public sealed class CpReferenceList : IList, ICollection, IEnumerable

    Constructors

    CpReferenceList()

    Declaration
    public CpReferenceList()

    Properties

    Count

    Gets the number of elements contained in the ICollection.

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    int

    The number of elements contained in the ICollection.

    IsSynchronized

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

    Declaration
    public bool IsSynchronized { get; }
    Property Value
    Type Description
    bool

    true if access to the ICollection is synchronized (thread safe); otherwise, false.

    this[int]

    Declaration
    public CpEncryptedReference this[int index] { get; set; }
    Parameters
    Type Name Description
    int index
    Property Value
    Type Description
    CpEncryptedReference

    SyncRoot

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

    Declaration
    public object SyncRoot { get; }
    Property Value
    Type Description
    object

    An object that can be used to synchronize access to the ICollection.

    Methods

    Add(object?)

    Adds an item to the IList.

    Declaration
    public int Add(object? value)
    Parameters
    Type Name Description
    object value

    The object to add to the IList.

    Returns
    Type Description
    int

    The position into which the new element was inserted, or -1 to indicate that the item was not inserted into the collection.

    Exceptions
    Type Condition
    NotSupportedException

    The IList is read-only.

    -or-

    The IList has a fixed size.

    Clear()

    Removes all items from the IList.

    Declaration
    public void Clear()
    Exceptions
    Type Condition
    NotSupportedException

    The IList is read-only.

    Contains(object?)

    Determines whether the IList contains a specific value.

    Declaration
    public bool Contains(object? value)
    Parameters
    Type Name Description
    object value

    The object to locate in the IList.

    Returns
    Type Description
    bool

    true if the object is found in the IList; otherwise, false.

    CopyTo(Array, int)

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

    Declaration
    public void CopyTo(Array array, int index)
    Parameters
    Type Name Description
    Array array

    The one-dimensional Array that is the destination of the elements copied from ICollection. The Array must have zero-based indexing.

    int index

    The zero-based index in array at which copying begins.

    Exceptions
    Type Condition
    ArgumentNullException

    array is null.

    ArgumentOutOfRangeException

    index is less than zero.

    ArgumentException

    array is multidimensional.

    -or-

    The number of elements in the source ICollection is greater than the available space from index to the end of the destination array.

    -or-

    The type of the source ICollection cannot be cast automatically to the type of the destination array.

    GetEnumerator()

    Returns an enumerator that iterates through a collection.

    Declaration
    public IEnumerator GetEnumerator()
    Returns
    Type Description
    IEnumerator

    An IEnumerator object that can be used to iterate through the collection.

    IndexOf(object?)

    Determines the index of a specific item in the IList.

    Declaration
    public int IndexOf(object? value)
    Parameters
    Type Name Description
    object value

    The object to locate in the IList.

    Returns
    Type Description
    int

    The index of value if found in the list; otherwise, -1.

    Insert(int, object?)

    Inserts an item to the IList at the specified index.

    Declaration
    public void Insert(int index, object? value)
    Parameters
    Type Name Description
    int index

    The zero-based index at which value should be inserted.

    object value

    The object to insert into the IList.

    Exceptions
    Type Condition
    ArgumentOutOfRangeException

    index is not a valid index in the IList.

    NotSupportedException

    The IList is read-only.

    -or-

    The IList has a fixed size.

    NullReferenceException

    value is null reference in the IList.

    Item(int)

    Declaration
    public CpEncryptedReference? Item(int index)
    Parameters
    Type Name Description
    int index
    Returns
    Type Description
    CpEncryptedReference

    Remove(object?)

    Removes the first occurrence of a specific object from the IList.

    Declaration
    public void Remove(object? value)
    Parameters
    Type Name Description
    object value

    The object to remove from the IList.

    Exceptions
    Type Condition
    NotSupportedException

    The IList is read-only.

    -or-

    The IList has a fixed size.

    RemoveAt(int)

    Removes the IList item at the specified index.

    Declaration
    public void RemoveAt(int index)
    Parameters
    Type Name Description
    int index

    The zero-based index of the item to remove.

    Exceptions
    Type Condition
    ArgumentOutOfRangeException

    index is not a valid index in the IList.

    NotSupportedException

    The IList is read-only.

    -or-

    The IList has a fixed size.

    Implements

    IList
    ICollection
    IEnumerable
    В этом разделе
    Наверх Generated by DocFX