AuthenticationService.DiscoverOrganizations Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DiscoverOrganizations(Uri, Uri, NetworkCredential, Boolean) |
Obsolete.
Discovers the organizations. |
DiscoverOrganizations(Uri, Uri, ClientCredentials, ClientCredentials) |
Obsolete.
Discovers the organizations. |
DiscoverOrganizations(Uri, Uri, NetworkCredential, Boolean)
Caution
Use Microsoft.Xrm.Tooling.Connector.CrmServiceClient.DiscoverOrganizations(string discoveryServiceUri, string homeRealmUri, NetworkCredential networkCredential)
Discovers the organizations.
[System.Obsolete("Use Microsoft.Xrm.Tooling.Connector.CrmServiceClient.DiscoverOrganizations(string discoveryServiceUri, string homeRealmUri, NetworkCredential networkCredential)")]
public Microsoft.Xrm.Sdk.Discovery.OrganizationDetailCollection DiscoverOrganizations (Uri discoveryServiceUri, Uri homeRealmUri, System.Net.NetworkCredential networkCredential, bool customIdentityProvider = false);
[<System.Obsolete("Use Microsoft.Xrm.Tooling.Connector.CrmServiceClient.DiscoverOrganizations(string discoveryServiceUri, string homeRealmUri, NetworkCredential networkCredential)")>]
member this.DiscoverOrganizations : Uri * Uri * System.Net.NetworkCredential * bool -> Microsoft.Xrm.Sdk.Discovery.OrganizationDetailCollection
Public Function DiscoverOrganizations (discoveryServiceUri As Uri, homeRealmUri As Uri, networkCredential As NetworkCredential, Optional customIdentityProvider As Boolean = false) As OrganizationDetailCollection
Parameters
- discoveryServiceUri
- Uri
Specifies the discovery service URI.
- homeRealmUri
- Uri
Specifies the home realm URI. Not null for federation authentication.
- networkCredential
- NetworkCredential
Specifies the network credential. When given null
value, uses the current user network credentials.
- customIdentityProvider
- Boolean
True
when using custom credentials, otherwise false
.
Returns
A collection of organizations.
- Attributes
Applies to
DiscoverOrganizations(Uri, Uri, ClientCredentials, ClientCredentials)
Caution
Use Microsoft.Xrm.Tooling.Connector.CrmServiceClient.DiscoverOrganizations(string discoveryServiceUri, string homeRealmUri, ClientCredentials clientCredentials, ClientCredentials deviceCredentials)
Discovers the organizations.
public:
Microsoft::Xrm::Sdk::Discovery::OrganizationDetailCollection ^ DiscoverOrganizations(Uri ^ discoveryServiceUri, Uri ^ homeRealmUri, System::ServiceModel::Description::ClientCredentials ^ clientCredentials, System::ServiceModel::Description::ClientCredentials ^ deviceCredentials);
[System.Obsolete("Use Microsoft.Xrm.Tooling.Connector.CrmServiceClient.DiscoverOrganizations(string discoveryServiceUri, string homeRealmUri, ClientCredentials clientCredentials, ClientCredentials deviceCredentials)")]
public Microsoft.Xrm.Sdk.Discovery.OrganizationDetailCollection DiscoverOrganizations (Uri discoveryServiceUri, Uri homeRealmUri, System.ServiceModel.Description.ClientCredentials clientCredentials, System.ServiceModel.Description.ClientCredentials deviceCredentials);
[<System.Obsolete("Use Microsoft.Xrm.Tooling.Connector.CrmServiceClient.DiscoverOrganizations(string discoveryServiceUri, string homeRealmUri, ClientCredentials clientCredentials, ClientCredentials deviceCredentials)")>]
member this.DiscoverOrganizations : Uri * Uri * System.ServiceModel.Description.ClientCredentials * System.ServiceModel.Description.ClientCredentials -> Microsoft.Xrm.Sdk.Discovery.OrganizationDetailCollection
Public Function DiscoverOrganizations (discoveryServiceUri As Uri, homeRealmUri As Uri, clientCredentials As ClientCredentials, deviceCredentials As ClientCredentials) As OrganizationDetailCollection
Parameters
- discoveryServiceUri
- Uri
Specifies the discovery service URI.
- homeRealmUri
- Uri
Specifies the home realm URI. Not null for federation authentication.
- clientCredentials
- ClientCredentials
Specifies the client credentials.
- deviceCredentials
- ClientCredentials
Specifies the device credentials.
Returns
A collection of organizations.
- Attributes