DiscoveryServiceProxy Constructor (IServiceConfiguration<IDiscoveryService>, ClientCredentials)
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
Initializes a new instance of the DiscoveryServiceProxy class using a service configuration and client credentials.
Namespace: Microsoft.Xrm.Sdk.Client
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
Syntax
public DiscoveryServiceProxy(
IServiceConfiguration<IDiscoveryService> serviceConfiguration,
ClientCredentials clientCredentials
)
Public Sub New (
serviceConfiguration As IServiceConfiguration(Of IDiscoveryService),
clientCredentials As ClientCredentials
)
Parameters
serviceConfiguration
Type: Microsoft.Xrm.Sdk.Client.IServiceConfiguration<IDiscoveryService>Type: IServiceConfiguration<TService>. A service configuration.
clientCredentials
Type: System.ServiceModel.Description.ClientCredentialsType: ClientCredentials. The logon credentials of the client.
See Also
DiscoveryServiceProxy Overload
DiscoveryServiceProxy Class
Microsoft.Xrm.Sdk.Client Namespace
ClientCredentials Class
Return to top
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright