ServiceClient.DiscoverOnPremiseOrganizationsAsync 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.
Discovers the organizations against an On-Premises deployment.
public static System.Threading.Tasks.Task<Microsoft.PowerPlatform.Dataverse.Client.Model.DiscoverOrganizationsResult> DiscoverOnPremiseOrganizationsAsync (Uri discoveryServiceUri, System.ServiceModel.Description.ClientCredentials clientCredentials, string clientId, Uri redirectUri, string authority, Microsoft.PowerPlatform.Dataverse.Client.Auth.PromptBehavior promptBehavior = Microsoft.PowerPlatform.Dataverse.Client.Auth.PromptBehavior.Auto, bool useDefaultCreds = false, string tokenCacheStorePath = default, Microsoft.Extensions.Logging.ILogger logger = default);
static member DiscoverOnPremiseOrganizationsAsync : Uri * System.ServiceModel.Description.ClientCredentials * string * Uri * string * Microsoft.PowerPlatform.Dataverse.Client.Auth.PromptBehavior * bool * string * Microsoft.Extensions.Logging.ILogger -> System.Threading.Tasks.Task<Microsoft.PowerPlatform.Dataverse.Client.Model.DiscoverOrganizationsResult>
Public Shared Function DiscoverOnPremiseOrganizationsAsync (discoveryServiceUri As Uri, clientCredentials As ClientCredentials, clientId As String, redirectUri As Uri, authority As String, Optional promptBehavior As PromptBehavior = Microsoft.PowerPlatform.Dataverse.Client.Auth.PromptBehavior.Auto, Optional useDefaultCreds As Boolean = false, Optional tokenCacheStorePath As String = Nothing, Optional logger As ILogger = Nothing) As Task(Of DiscoverOrganizationsResult)
Parameters
- discoveryServiceUri
- Uri
The discovery service URI.
- clientCredentials
- ClientCredentials
The client credentials.
- clientId
- String
The client Id.
- redirectUri
- Uri
The redirect uri.
- authority
- String
The authority provider for OAuth tokens. Unique if any already known.
- promptBehavior
- PromptBehavior
The prompt behavior.
- useDefaultCreds
- Boolean
(Optional) if specified, tries to use the current user
- tokenCacheStorePath
- String
(optional) path to log store
Returns
A collection of organizations