CredentialManager.WriteCredentials Method (String, SavedCredentials, Boolean)

 

Updated: November 29, 2016

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Writes the credentials.

Namespace:   Microsoft.Xrm.Tooling.CrmConnectControl.Utility
Assembly:  Microsoft.Xrm.Tooling.CrmConnectControl (in Microsoft.Xrm.Tooling.CrmConnectControl.dll)

public static void WriteCredentials(
	string target,
	SavedCredentials userCredentials,
	bool storePasswordInCredentialCache
)

Parameters

target
Type: System.String

Target is the key with which associated credentials can be fetched

userCredentials
Type: Microsoft.Xrm.Tooling.CrmConnectControl.Utility.SavedCredentials

It is the in parameter which contains the username and password

storePasswordInCredentialCache
Type: System.Boolean

Indicates that the password should be persisted to the credential cache

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright

Show: