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.
CngKey::SetProperty Method (CngProperty)
.NET Framework (current version)
Sets a named property on the key.
Assembly: System.Core (in System.Core.dll)
public: [SecurityPermissionAttribute(SecurityAction::Demand, UnmanagedCode = true)] void SetProperty( CngProperty property )
Parameters
- 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.
SecurityPermission
for permission to call unmanaged code. Demand value: LinkDemand. Associated enumeration: SecurityPermissionFlag::UnmanagedCode
.NET Framework
Available since 3.5
Available since 3.5
Show: