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
- discoveryServiceUri
Type: System.Uri
- clientCredentials
Type: System.ServiceModel.Description.ClientCredentials
- clientId
Type: System.String
- redirectUri
Type: System.Uri
- tokenCachePath
Type: System.String
- isOnPrem
Type: System.Boolean
- authority
Type: System.String
- promptBehavior
Type: Microsoft.IdentityModel.Clients.ActiveDirectory.PromptBehavior
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