AuthenticationService.DiscoverOrganizations Method (Uri, Uri, ClientCredentials, ClientCredentials)
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, ClientCredentials clientCredentials, ClientCredentials deviceCredentials)")]
public OrganizationDetailCollection DiscoverOrganizations(
Uri discoveryServiceUri,
Uri homeRealmUri,
ClientCredentials clientCredentials,
ClientCredentials deviceCredentials
)
<ObsoleteAttribute("Use Microsoft.Xrm.Tooling.Connector.CrmServiceClient.DiscoverOrganizations(string discoveryServiceUri, string homeRealmUri, ClientCredentials clientCredentials, ClientCredentials deviceCredentials)")>
Public Function DiscoverOrganizations (
discoveryServiceUri As Uri,
homeRealmUri As Uri,
clientCredentials As ClientCredentials,
deviceCredentials As ClientCredentials
) As OrganizationDetailCollection
Parameters
discoveryServiceUri
Type: System.UriSpecifies the discovery service URI.
homeRealmUri
Type: System.UriSpecifies the home realm URI. Not null for federation authentication.
clientCredentials
Type: System.ServiceModel.Description.ClientCredentialsSpecifies the client credentials.
deviceCredentials
Type: System.ServiceModel.Description.ClientCredentialsSpecifies the device credentials.
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