GetCredentials(unsigned int, string, string) Method

The GetCredentials method of the Credentials class gets the credentials for the specified enterprise application definition.


ui32Flags Reserved for internal use.

strApplicationName The name of the enterprise application definition. The maximum allowed number of characters is 128.

Credentials Reference to an array**** of strings**** that represent the credentials.


Exception Type Condition
SingleSignonException Method fails or credentials not found.


The GetCredentials method gets both user and group credentials for an application definition. All users can call this method. The GetCredentials method is audited with a result of success or failure and the user that called the method in the single sign-on database. The ServiceAction enumeration recorded is GetCredentials.


The following code example shows how to use the GetCredentials method.


Platforms: Microsoft Windows Server 2003

Security: Code Access Security