This documentation is archived and is not being maintained.

CngProperty Constructor

Initializes a new instance of the CngProperty class.

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

public CngProperty(
	string name,
	byte[] value,
	CngPropertyOptions options
)

Parameters

name
Type: System.String

The property name to initialize.

value
Type: System.Byte[]

The property value to initialize.

options
Type: System.Security.Cryptography.CngPropertyOptions

A bitwise combination of the enumeration values that specify how the property is stored.

ExceptionCondition
ArgumentNullException

name is null.

Properties that are stored with a specific set of CngPropertyOptions flags require the same set of flags when they are retrieved.

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5
Show: