CrmServiceClient.DiscoverOrganizations Method (Uri, ClientCredentials, UserIdentifier, String, Uri, String, Boolean, String, PromptBehavior)

 

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

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

Syntax

public static OrganizationDetailCollection DiscoverOrganizations(
    Uri discoveryServiceUri,
    ClientCredentials clientCredentials,
    UserIdentifier user,
    string clientId,
    Uri redirectUri,
    string tokenCachePath,
    bool isOnPrem,
    string authority,
    PromptBehavior promptBehavior = PromptBehavior.Auto
)
Public Shared Function DiscoverOrganizations (
    discoveryServiceUri As Uri,
    clientCredentials As ClientCredentials,
    user As UserIdentifier,
    clientId As String,
    redirectUri As Uri,
    tokenCachePath As String,
    isOnPrem As Boolean,
    authority As String,
    promptBehavior As PromptBehavior
) As OrganizationDetailCollection

Parameters

Return Value

Type: Microsoft.Xrm.Sdk.Discovery.OrganizationDetailCollection

Returns OrganizationDetailCollection.

See Also

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

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright