EncryptionPropertyCollection Class
Represents a collection of EncryptionProperty classes used in XML encryption. This class cannot be inherited.
Assembly: System.Security (in System.Security.dll)
| Name | Description | |
|---|---|---|
![]() | EncryptionPropertyCollection() | Initializes a new instance of the EncryptionPropertyCollection class. |
| Name | Description | |
|---|---|---|
![]() | Count | Gets the number of elements contained in the EncryptionPropertyCollection object. |
![]() | IsFixedSize | Gets a value that indicates whether the EncryptionPropertyCollection object has a fixed size. |
![]() | IsReadOnly | Gets a value that indicates whether the EncryptionPropertyCollection object is read-only. |
![]() | IsSynchronized | Gets a value that indicates whether access to the EncryptionPropertyCollection object is synchronized (thread safe). |
![]() | ItemOf[Int32] | Gets or sets the EncryptionProperty object at the specified index. |
![]() | SyncRoot | Gets an object that can be used to synchronize access to the EncryptionPropertyCollection object. |
| Name | Description | |
|---|---|---|
![]() | Add(EncryptionProperty^) | Adds an EncryptionProperty object to the EncryptionPropertyCollection object. |
![]() | Clear() | Removes all items from the EncryptionPropertyCollection object. |
![]() | Contains(EncryptionProperty^) | Determines whether the EncryptionPropertyCollection object contains a specific EncryptionProperty object. |
![]() | CopyTo(Array^, Int32) | Copies the elements of the EncryptionPropertyCollection object to an array, starting at a particular array index. |
![]() | CopyTo(array<EncryptionProperty^>^, Int32) | Copies the elements of the EncryptionPropertyCollection object to an array of EncryptionProperty objects, starting at a particular array index. |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | GetEnumerator() | Returns an enumerator that iterates through an EncryptionPropertyCollection object. |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | IndexOf(EncryptionProperty^) | Determines the index of a specific item in the EncryptionPropertyCollection object. |
![]() | Insert(Int32, EncryptionProperty^) | Inserts an EncryptionProperty object into the EncryptionPropertyCollection object at the specified position. |
![]() | Item(Int32) | Returns the EncryptionProperty object at the specified index. |
![]() | Remove(EncryptionProperty^) | Removes the first occurrence of a specific EncryptionProperty object from the EncryptionPropertyCollection object. |
![]() | RemoveAt(Int32) | Removes the EncryptionProperty object at the specified index. |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IList::Add(Object^) | Adds an item to the IList. |
![]() ![]() | IList::Contains(Object^) | Determines whether the IList contains a specific value. |
![]() ![]() | IList::IndexOf(Object^) | Determines the index of a specific item in the IList. |
![]() ![]() | IList::Insert(Int32, Object^) | Inserts an item to the IList at the specified index. |
![]() ![]() | IList::Remove(Object^) | Removes the first occurrence of a specific object from the IList. |
![]() ![]() | IList::Item[Int32] | Gets the element at the specified index. |
| Name | Description | |
|---|---|---|
![]() | AsParallel() | Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.) |
![]() | AsQueryable() | Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.) |
![]() | Cast<TResult>() | Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.) |
![]() | OfType<TResult>() | Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.) |
The EncryptionProperty class encapsulates the <EncryptionProperty> element defined by the World Wide Web Consortium XML Encryption specification located at http://www.w3.org/TR/xmlenc-core/.
Use the EncryptionProperty class to provide additional encryption information related to the EncryptedData and EncryptedKey elements. For example, you can use this class to specify a time stamp.
The following code example encrypts and decrypts an XML document. This code example creates an EncryptionProperty object that contains custom information about the EncryptedKey element, and adds the EncryptionProperty object to the EncryptionPropertyCollection collection of the EncryptedXml class. Finally, this code example displays information about the EncryptionProperty object and the EncryptionPropertyCollection collection.
Available since 2.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.




