Compartilhar via


AuthenticationService.Connect Method (Uri, Uri, NetworkCredential, String, Boolean)

Connects to the specified discovery service URI.

Namespace: Microsoft.Uii.AifServices
Assembly: Microsoft.Uii.AifServices (in Microsoft.Uii.AifServices.dll)

Usage

'Usage
Dim instance As AuthenticationService
Dim discoveryServiceUri As Uri
Dim homeRealmUri As Uri
Dim networkCredential As NetworkCredential
Dim organizationName As String
Dim customIdentityProvider As Boolean

instance.Connect(discoveryServiceUri, homeRealmUri, networkCredential, organizationName, customIdentityProvider)

Syntax

'Declaration
Public Sub Connect ( _
    discoveryServiceUri As Uri, _
    homeRealmUri As Uri, _
    networkCredential As NetworkCredential, _
    organizationName As String, _
    <OptionalAttribute> Optional customIdentityProvider As Boolean = False _
)
public void Connect (
    Uri discoveryServiceUri,
    Uri homeRealmUri,
    NetworkCredential networkCredential,
    string organizationName,
    [OptionalAttribute] bool customIdentityProvider
)
public:
void Connect (
    Uri^ discoveryServiceUri, 
    Uri^ homeRealmUri, 
    NetworkCredential^ networkCredential, 
    String^ organizationName, 
    [OptionalAttribute] bool customIdentityProvider
)
public void Connect (
    Uri discoveryServiceUri, 
    Uri homeRealmUri, 
    NetworkCredential networkCredential, 
    String organizationName, 
    /** @attribute OptionalAttribute() */ boolean customIdentityProvider
)
public function Connect (
    discoveryServiceUri : Uri, 
    homeRealmUri : Uri, 
    networkCredential : NetworkCredential, 
    organizationName : String, 
    customIdentityProvider : boolean
)

Parameters

  • discoveryServiceUri
    Specifies the discovery service URI.
  • homeRealmUri
    Specifies the home realm URI. Not null for federation authentication.
  • networkCredential
    Specifies the network credential. When given null value, uses the current user network credentials.
  • organizationName
    Specifies the name of the organization.
  • customIdentityProvider
    True when using custom credentials, otherwise false.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

See Also

Reference

AuthenticationService Class
AuthenticationService Members
Microsoft.Uii.AifServices Namespace

Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.