Share via


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

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM 2016

Note: This API is now obsolete.

Discovers the organizations.

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

Syntax

[ObsoleteAttribute("Use Microsoft.Xrm.Tooling.Connector.CrmServiceClient.DiscoverOrganizations(string discoveryServiceUri, string homeRealmUri, NetworkCredential networkCredential)")]
public OrganizationDetailCollection DiscoverOrganizations(
    Uri discoveryServiceUri,
    Uri homeRealmUri,
    NetworkCredential networkCredential,
    bool customIdentityProvider = false
)
<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,
    customIdentityProvider As Boolean
) As OrganizationDetailCollection

Parameters

  • discoveryServiceUri
    Type: System.Uri

    Specifies the discovery service URI.

  • homeRealmUri
    Type: System.Uri

    Specifies the home realm URI. Not null for federation authentication.

  • networkCredential
    Type: System.Net.NetworkCredential

    Specifies the network credential. When given null value, uses the current user network credentials.

  • customIdentityProvider
    Type: System.Boolean

    True when using custom credentials, otherwise false.

Return Value

Type: Microsoft.Xrm.Sdk.Discovery.OrganizationDetailCollection

A collection of organizations.

See Also

DiscoverOrganizations Overload
AuthenticationService Class
Microsoft.Uii.AifServices Namespace

Return to top

Unified Service Desk 2.0

© 2017 Microsoft. All rights reserved. Copyright