CrmServiceClient.DiscoverOrganizations Method (Uri, Uri, NetworkCredential)

 

Updated: November 29, 2016

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

Discovers the organizations.

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

public static OrganizationDetailCollection DiscoverOrganizations(
	Uri discoveryServiceUri,
	Uri homeRealmUri,
	NetworkCredential networkCredential
)

Parameters

discoveryServiceUri
Type: System.Uri

The discovery service URI.

homeRealmUri
Type: System.Uri

The home realm URI. Not null for federation authentication.

networkCredential
Type: System.Net.NetworkCredential

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

Return Value

Type: Microsoft.Xrm.Sdk.Discovery.OrganizationDetailCollection

A collection of organizations.

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright

Show: