Share via


CrmServiceClient.DiscoverOrganizations Method (Uri, Uri, ClientCredentials, ClientCredentials)

 

Applies To: Dynamics CRM 2015

Discovers the organizations.

Namespace:   Microsoft.Xrm.Tooling.Connector
Assembly:  Microsoft.Xrm.Tooling.Connector (in Microsoft.Xrm.Tooling.Connector.dll)

Syntax

public static OrganizationDetailCollection DiscoverOrganizations(
    Uri discoveryServiceUri,
    Uri homeRealmUri,
    ClientCredentials clientCredentials,
    ClientCredentials deviceCredentials
)
public:
static OrganizationDetailCollection^ DiscoverOrganizations(
    Uri^ discoveryServiceUri,
    Uri^ homeRealmUri,
    ClientCredentials^ clientCredentials,
    ClientCredentials^ deviceCredentials
)
static member DiscoverOrganizations : 
        discoveryServiceUri:Uri *
        homeRealmUri:Uri *
        clientCredentials:ClientCredentials *
        deviceCredentials:ClientCredentials -> OrganizationDetailCollection
Public Shared Function DiscoverOrganizations (
    discoveryServiceUri As Uri,
    homeRealmUri As Uri,
    clientCredentials As ClientCredentials,
    deviceCredentials As ClientCredentials
) As OrganizationDetailCollection

Parameters

  • discoveryServiceUri
    Type: System.Uri

    The discovery service URI.

  • homeRealmUri
    Type: System.Uri

    The home realm URI. Not null for federation authentication.

Return Value

Type: Microsoft.Xrm.Sdk.Discovery.OrganizationDetailCollection

A collection of organizations.

See Also

DiscoverOrganizations Overload
CrmServiceClient Class
Microsoft.Xrm.Tooling.Connector Namespace

Return to top

© 2016 Microsoft. All rights reserved. Copyright