Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AesCryptoServiceProvider::Key Property

 

Gets or sets the symmetric key that is used for encryption and decryption.

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

public:
property array<unsigned char>^ Key {
	virtual array<unsigned char>^ get() override;
	virtual void set(array<unsigned char>^ value) override;
}

Property Value

Type: array<System::Byte>^

The symmetric key that is used for encryption and decryption.

Exception Condition
ArgumentNullException

The value for the key is null.

CryptographicException

The size of the key is invalid.

.NET Framework
Available since 3.5
Return to top
Show:
© 2017 Microsoft