Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SetProperty Method

CngKey.SetProperty Method

Sets a named property on the key.

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

[SecurityPermissionAttribute(SecurityAction.Demand, UnmanagedCode = true)]
public void SetProperty(
	CngProperty property


Type: System.Security.Cryptography.CngProperty

The key property to set.

This method enables you to add a new custom property to an existing key by using a CngProperty object. The options set on the CngProperty object must exactly match the options in the GetProperty call. Otherwise, the property will not be found.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

© 2015 Microsoft