CngKey.IsMachineKey Property


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

Gets the scope (machine or user) of the key.

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

public bool IsMachineKey { get; }

Property Value

Type: System.Boolean

true if the key is available on a machine-wide basis; false if the key is only for the current user.

.NET Framework
Available since 3.5
Return to top