AuthenticationService.DiscoverOrganizations Method (Uri, Uri, NetworkCredential, Boolean)

Discovers the organizations.

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 customIdentityProvider As Boolean
Dim returnValue As OrganizationDetailCollection

returnValue = instance.DiscoverOrganizations(discoveryServiceUri, homeRealmUri, networkCredential, customIdentityProvider)

Syntax

'Declaration
<ObsoleteAttribute("Use Microsoft.Xrm.Tooling.Connector.CrmServiceClient.DiscoverOrganizations(string discoveryServiceUri, string homeRealmUri, NetworkCredential networkCredential)")> _
Public Function DiscoverOrganizations ( _
    discoveryServiceUri As Uri, _
    homeRealmUri As Uri, _
    networkCredential As NetworkCredential, _
    <OptionalAttribute> Optional customIdentityProvider As Boolean = False _
) As OrganizationDetailCollection
[ObsoleteAttribute("Use Microsoft.Xrm.Tooling.Connector.CrmServiceClient.DiscoverOrganizations(string discoveryServiceUri, string homeRealmUri, NetworkCredential networkCredential)")] 
public OrganizationDetailCollection DiscoverOrganizations (
    Uri discoveryServiceUri,
    Uri homeRealmUri,
    NetworkCredential networkCredential,
    [OptionalAttribute] bool customIdentityProvider
)
[ObsoleteAttribute(L"Use Microsoft.Xrm.Tooling.Connector.CrmServiceClient.DiscoverOrganizations(string discoveryServiceUri, string homeRealmUri, NetworkCredential networkCredential)")] 
public:
OrganizationDetailCollection^ DiscoverOrganizations (
    Uri^ discoveryServiceUri, 
    Uri^ homeRealmUri, 
    NetworkCredential^ networkCredential, 
    [OptionalAttribute] bool customIdentityProvider
)
/** @attribute ObsoleteAttribute("Use Microsoft.Xrm.Tooling.Connector.CrmServiceClient.DiscoverOrganizations(string discoveryServiceUri, string homeRealmUri, NetworkCredential networkCredential)") */ 
public OrganizationDetailCollection DiscoverOrganizations (
    Uri discoveryServiceUri, 
    Uri homeRealmUri, 
    NetworkCredential networkCredential, 
    /** @attribute OptionalAttribute() */ boolean customIdentityProvider
)
ObsoleteAttribute("Use Microsoft.Xrm.Tooling.Connector.CrmServiceClient.DiscoverOrganizations(string discoveryServiceUri, string homeRealmUri, NetworkCredential networkCredential)") 
public function DiscoverOrganizations (
    discoveryServiceUri : Uri, 
    homeRealmUri : Uri, 
    networkCredential : NetworkCredential, 
    customIdentityProvider : boolean
) : OrganizationDetailCollection

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.
  • customIdentityProvider
    True when using custom credentials, otherwise false.

Return Value

A collection of organizations.

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.