Class CpEncryptionPropertyCollection
Inherited Members
Namespace: CryptoPro.Security.Cryptography.Xml
Assembly: CryptoPro.Security.Cryptography.Xml.dll
Syntax
public sealed class CpEncryptionPropertyCollection : IList, ICollection, IEnumerable
Constructors
CpEncryptionPropertyCollection()
Declaration
public CpEncryptionPropertyCollection()
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. |
IsFixedSize
Gets a value indicating whether the IList has a fixed size.
Declaration
public bool IsFixedSize { get; }
Property Value
Type | Description |
---|---|
bool |
IsReadOnly
Gets a value indicating whether the IList is read-only.
Declaration
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
bool |
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 CpEncryptionProperty this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
int | index |
Property Value
Type | Description |
---|---|
CpEncryptionProperty |
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(CpEncryptionProperty)
Declaration
public int Add(CpEncryptionProperty value)
Parameters
Type | Name | Description |
---|---|---|
CpEncryptionProperty | value |
Returns
Type | Description |
---|---|
int |
Clear()
Removes all items from the IList.
Declaration
public void Clear()
Exceptions
Type | Condition |
---|---|
NotSupportedException | The IList is read-only. |
Contains(CpEncryptionProperty)
Declaration
public bool Contains(CpEncryptionProperty value)
Parameters
Type | Name | Description |
---|---|---|
CpEncryptionProperty | value |
Returns
Type | Description |
---|---|
bool |
CopyTo(CpEncryptionProperty[], int)
Declaration
public void CopyTo(CpEncryptionProperty[] array, int index)
Parameters
Type | Name | Description |
---|---|---|
CpEncryptionProperty[] | array | |
int | index |
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 |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
ArgumentOutOfRangeException |
|
ArgumentException |
-or- The number of elements in the source ICollection is greater than the available space from -or- The type of the source ICollection cannot be cast automatically to the type of the destination |
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(CpEncryptionProperty)
Declaration
public int IndexOf(CpEncryptionProperty value)
Parameters
Type | Name | Description |
---|---|---|
CpEncryptionProperty | value |
Returns
Type | Description |
---|---|
int |
Insert(int, CpEncryptionProperty)
Declaration
public void Insert(int index, CpEncryptionProperty value)
Parameters
Type | Name | Description |
---|---|---|
int | index | |
CpEncryptionProperty | value |
Item(int)
Declaration
public CpEncryptionProperty Item(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index |
Returns
Type | Description |
---|---|
CpEncryptionProperty |
Remove(CpEncryptionProperty)
Declaration
public void Remove(CpEncryptionProperty value)
Parameters
Type | Name | Description |
---|---|---|
CpEncryptionProperty | value |
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 |
|
NotSupportedException | The IList is read-only. -or- The IList has a fixed size. |