Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework. Gets or sets a value indicating whether the key should be persisted in the computer's key store instead of the user profile store.
[Visual Basic]
Public Shared Property UseMachineKeyStore As Boolean
[C#]
public static bool UseMachineKeyStore {get; set;}
[C++]
public: __property static bool get_UseMachineKeyStore();
public: __property static void set_UseMachineKeyStore(bool);
[JScript]
public static function get UseMachineKeyStore() : Boolean;
public static function set UseMachineKeyStore(Boolean); Property Value
true if the key should be persisted in the computer key store; otherwise, false.
Remarks
Setting this property to true is equivalent to passing the System.Security.Cryptography.CspFlags.UseMachineKeyStore flag to a CspParameters object. The UseMachineKeyStore property applies to all code in the current application domain, while the CspParameters object applies only to classes that explicitly reference it. These settings are useful when impersonating or running under an account whose user profile is not loaded.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
RSACryptoServiceProvider Class | RSACryptoServiceProvider Members | System.Security.Cryptography Namespace | Cryptographic Services