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

Discovers the organizations.

Namespace: Microsoft.Uii.AifServices
Assembly: Microsoft.Uii.AifServices (in Microsoft.Uii.AifServices.dll)

Usage

'Usage
Dim instance As AuthenticationService
Dim discoveryServiceUri As Uri
Dim homeRealmUri As Uri
Dim clientCredentials As ClientCredentials
Dim deviceCredentials As ClientCredentials
Dim returnValue As OrganizationDetailCollection

returnValue = instance.DiscoverOrganizations(discoveryServiceUri, homeRealmUri, clientCredentials, deviceCredentials)

Syntax

'Declaration
<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
[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(L"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
)
/** @attribute 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 : Uri, 
    homeRealmUri : Uri, 
    clientCredentials : ClientCredentials, 
    deviceCredentials : ClientCredentials
) : OrganizationDetailCollection

Parameters

  • discoveryServiceUri
    Specifies the discovery service URI.
  • homeRealmUri
    Specifies the home realm URI. Not null for federation authentication.
  • clientCredentials
    Specifies the client credentials.
  • deviceCredentials
    Specifies the device credentials.

Return Value

A collection of organizations.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

See Also

Reference

AuthenticationService Class
AuthenticationService Members
Microsoft.Uii.AifServices Namespace

Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.