Share via


ClientCredentialInfo.CreateUsernamePasswordCredential Method (String, String)

 

Creates a ClientCredentialInfo object with a specified user name and password.

Namespace:   System.Web.Security.SingleSignOn
Assembly:  System.Web.Security.SingleSignOn (in System.Web.Security.SingleSignOn.dll)

Syntax

public static ClientCredentialInfo CreateUsernamePasswordCredential(
    string username,
    string password
)
public:
static ClientCredentialInfo^ CreateUsernamePasswordCredential(
    String^ username,
    String^ password
)
static member CreateUsernamePasswordCredential : 
        username:string *
        password:string -> ClientCredentialInfo
Public Shared Function CreateUsernamePasswordCredential (
    username As String,
    password As String
) As ClientCredentialInfo

Parameters

  • username
    Type: System.String

    A string that contains the user name.

  • password
    Type: System.String

    A string that contains the password.

Return Value

Type: System.Web.Security.SingleSignOn.ClientCredentialInfo

A ClientCredentialInfo object with a specified user name and password.

See Also

ClientCredentialInfo Class
System.Web.Security.SingleSignOn Namespace

Return to top