RSACryptoServiceProvider.UseMachineKeyStore Property
This page is specific to:.NET Framework Version:1.12.03.03.54.0
.NET Framework Class Library
RSACryptoServiceProvider.UseMachineKeyStore Property
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

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View