EncryptionPropertyCollection Class

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Represents a collection of EncryptionProperty classes used in XML encryption. This class cannot be inherited.

Namespace:   System.Security.Cryptography.Xml
Assembly:  System.Security (in System.Security.dll)

System.Object
  System.Security.Cryptography.Xml.EncryptionPropertyCollection

[<Sealed>]
[<HostProtectionAttribute(SecurityAction.LinkDemand, MayLeakOnAbort = true)>]
type EncryptionPropertyCollection = 
    class
        interface IList
        interface ICollection
        interface IEnumerable
    end

NameDescription
System_CAPS_pubmethodEncryptionPropertyCollection()

Initializes a new instance of the EncryptionPropertyCollection class.

NameDescription
System_CAPS_pubpropertyCount

Gets the number of elements contained in the EncryptionPropertyCollection object.

System_CAPS_pubpropertyIsFixedSize

Gets a value that indicates whether the EncryptionPropertyCollection object has a fixed size.

System_CAPS_pubpropertyIsReadOnly

Gets a value that indicates whether the EncryptionPropertyCollection object is read-only.

System_CAPS_pubpropertyIsSynchronized

Gets a value that indicates whether access to the EncryptionPropertyCollection object is synchronized (thread safe).

System_CAPS_pubpropertyItemOf(Int32)

Gets or sets the EncryptionProperty object at the specified index.

System_CAPS_pubpropertySyncRoot

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

NameDescription
System_CAPS_pubmethodAdd(EncryptionProperty)

Adds an EncryptionProperty object to the EncryptionPropertyCollection object.

System_CAPS_pubmethodClear()

Removes all items from the EncryptionPropertyCollection object.

System_CAPS_pubmethodContains(EncryptionProperty)

Determines whether the EncryptionPropertyCollection object contains a specific EncryptionProperty object.

System_CAPS_pubmethodCopyTo(Array, Int32)

Copies the elements of the EncryptionPropertyCollection object to an array, starting at a particular array index.

System_CAPS_pubmethodCopyTo(EncryptionProperty[], Int32)

Copies the elements of the EncryptionPropertyCollection object to an array of EncryptionProperty objects, starting at a particular array index.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Returns an enumerator that iterates through an EncryptionPropertyCollection object.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodIndexOf(EncryptionProperty)

Determines the index of a specific item in the EncryptionPropertyCollection object.

System_CAPS_pubmethodInsert(Int32, EncryptionProperty)

Inserts an EncryptionProperty object into the EncryptionPropertyCollection object at the specified position.

System_CAPS_pubmethodItem(Int32)

Returns the EncryptionProperty object at the specified index.

System_CAPS_pubmethodRemove(EncryptionProperty)

Removes the first occurrence of a specific EncryptionProperty object from the EncryptionPropertyCollection object.

System_CAPS_pubmethodRemoveAt(Int32)

Removes the EncryptionProperty object at the specified index.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Add(Object)

Adds an item to the IList.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Contains(Object)

Determines whether the IList contains a specific value.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.IndexOf(Object)

Determines the index of a specific item in the IList.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Insert(Int32, Object)

Inserts an item to the IList at the specified index.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIList.Remove(Object)

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

System_CAPS_pubinterfaceSystem_CAPS_privpropertyIList.Item(Int32)

Gets the element at the specified index.

NameDescription
System_CAPS_pubmethodAsParallel()

Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)

System_CAPS_pubmethodAsQueryable()

Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.)

System_CAPS_pubmethodCast<'TResult>()

Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.)

System_CAPS_pubmethodOfType<'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.

No code example is currently available or this language may not be supported.

.NET Framework
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.

Return to top
Show: