Persists the stored credentials for later retrieval.

Namespace: ININ.IceLib.Connection
Assembly: ININ.IceLib (in ININ.IceLib.dll) Version: 0.0.0.0 (22.3.0.218)

Syntax

C#
public static void SetCredentials(
	StoredCredentials credentials,
	bool setAsDefault
)
Visual Basic
Public Shared Sub SetCredentials ( _
	credentials As StoredCredentials, _
	setAsDefault As Boolean _
)

Parameters

credentials
Type: ININ.IceLib.Connection..::..StoredCredentials
The credentials to save.
setAsDefault
Type: System..::..Boolean
Overwrite the existing default saved credentials. If setAsDefault is set to trueTruetruetrue (True in Visual Basic) the default credentials will be set to credentials, as will the credentials for the specified application. Otherwise, the saved credentials for applicationName will be set to credentials and the default will remain unchanged.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionA parameter is nullNothingnullptra null reference (Nothing in Visual Basic).
System..::..ArgumentExceptionAn argument was invalid.

Version Information

Supported for IC Server version 2015 R1 and beyond.
For 4.0, supported for IC Server version 4.0 GA and beyond.
For 3.0, supported for IC Server version 3.0 GA and beyond.

See Also