CredentialManager.WriteCredentials Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
WriteCredentials(String, SavedCredentials, Boolean) |
Writes the credentials. |
WriteCredentials(Uri, SavedCredentials, Boolean) |
Writes the credentials. |
WriteCredentials(String, SavedCredentials, Boolean)
Writes the credentials.
public:
static void WriteCredentials(System::String ^ target, Microsoft::Xrm::Tooling::CrmConnectControl::Utility::SavedCredentials ^ userCredentials, bool storePasswordInCredentialCache);
public static void WriteCredentials (string target, Microsoft.Xrm.Tooling.CrmConnectControl.Utility.SavedCredentials userCredentials, bool storePasswordInCredentialCache);
static member WriteCredentials : string * Microsoft.Xrm.Tooling.CrmConnectControl.Utility.SavedCredentials * bool -> unit
Public Shared Sub WriteCredentials (target As String, userCredentials As SavedCredentials, storePasswordInCredentialCache As Boolean)
Parameters
- target
- String
Target is the key with which associated credentials can be fetched
- userCredentials
- SavedCredentials
It is the in parameter which contains the username and password
- storePasswordInCredentialCache
- Boolean
Indicates that the password should be persisted to the credential cache
Applies to
WriteCredentials(Uri, SavedCredentials, Boolean)
Writes the credentials.
public:
static void WriteCredentials(Uri ^ target, Microsoft::Xrm::Tooling::CrmConnectControl::Utility::SavedCredentials ^ userCredentials, bool storePasswordInCredentialCache);
public static void WriteCredentials (Uri target, Microsoft.Xrm.Tooling.CrmConnectControl.Utility.SavedCredentials userCredentials, bool storePasswordInCredentialCache);
static member WriteCredentials : Uri * Microsoft.Xrm.Tooling.CrmConnectControl.Utility.SavedCredentials * bool -> unit
Public Shared Sub WriteCredentials (target As Uri, userCredentials As SavedCredentials, storePasswordInCredentialCache As Boolean)
Parameters
- target
- Uri
Target is the key with which associated credentials can be fetched
- userCredentials
- SavedCredentials
It is the in parameter which contains the username and password
- storePasswordInCredentialCache
- Boolean
Indicates that the password should be persisted to the credential cache