Compartir a través de


DiscoveryServiceProxy Constructors

Definition

Overloads

DiscoveryServiceProxy(IServiceConfiguration<IDiscoveryService>, SecurityTokenResponse)

Initializes a new instance of the DiscoveryServiceProxy class using a service configuration and a security token response.

DiscoveryServiceProxy(IServiceConfiguration<IDiscoveryService>, ClientCredentials)

Initializes a new instance of the DiscoveryServiceProxy class using a service configuration and client credentials.

DiscoveryServiceProxy(IServiceManagement<IDiscoveryService>, SecurityTokenResponse)

Initializes a new instance of the DiscoveryServiceProxy class using a service management and a security token response.

DiscoveryServiceProxy(IServiceManagement<IDiscoveryService>, ClientCredentials)

Initializes a new instance of the DiscoveryServiceProxy class using a service management and client credentials.

DiscoveryServiceProxy(Uri, Uri, ClientCredentials, ClientCredentials)

Initializes a new instance of the DiscoveryServiceProxy class using a discovery service URI, home realm URI, and client and device credentials.

DiscoveryServiceProxy(IServiceConfiguration<IDiscoveryService>, SecurityTokenResponse)

Initializes a new instance of the DiscoveryServiceProxy class using a service configuration and a security token response.

public:
 DiscoveryServiceProxy(Microsoft::Xrm::Sdk::Client::IServiceConfiguration<Microsoft::Xrm::Sdk::Discovery::IDiscoveryService ^> ^ serviceConfiguration, Microsoft::Xrm::Sdk::Client::SecurityTokenResponse ^ securityTokenResponse);
public DiscoveryServiceProxy (Microsoft.Xrm.Sdk.Client.IServiceConfiguration<Microsoft.Xrm.Sdk.Discovery.IDiscoveryService> serviceConfiguration, Microsoft.Xrm.Sdk.Client.SecurityTokenResponse securityTokenResponse);
new Microsoft.Xrm.Sdk.Client.DiscoveryServiceProxy : Microsoft.Xrm.Sdk.Client.IServiceConfiguration<Microsoft.Xrm.Sdk.Discovery.IDiscoveryService> * Microsoft.Xrm.Sdk.Client.SecurityTokenResponse -> Microsoft.Xrm.Sdk.Client.DiscoveryServiceProxy
Public Sub New (serviceConfiguration As IServiceConfiguration(Of IDiscoveryService), securityTokenResponse As SecurityTokenResponse)

Parameters

serviceConfiguration
IServiceConfiguration<IDiscoveryService>

A service configuration.

securityTokenResponse
SecurityTokenResponse

A security token response.

See also

Applies to

DiscoveryServiceProxy(IServiceConfiguration<IDiscoveryService>, ClientCredentials)

Initializes a new instance of the DiscoveryServiceProxy class using a service configuration and client credentials.

public:
 DiscoveryServiceProxy(Microsoft::Xrm::Sdk::Client::IServiceConfiguration<Microsoft::Xrm::Sdk::Discovery::IDiscoveryService ^> ^ serviceConfiguration, System::ServiceModel::Description::ClientCredentials ^ clientCredentials);
public DiscoveryServiceProxy (Microsoft.Xrm.Sdk.Client.IServiceConfiguration<Microsoft.Xrm.Sdk.Discovery.IDiscoveryService> serviceConfiguration, System.ServiceModel.Description.ClientCredentials clientCredentials);
new Microsoft.Xrm.Sdk.Client.DiscoveryServiceProxy : Microsoft.Xrm.Sdk.Client.IServiceConfiguration<Microsoft.Xrm.Sdk.Discovery.IDiscoveryService> * System.ServiceModel.Description.ClientCredentials -> Microsoft.Xrm.Sdk.Client.DiscoveryServiceProxy
Public Sub New (serviceConfiguration As IServiceConfiguration(Of IDiscoveryService), clientCredentials As ClientCredentials)

Parameters

serviceConfiguration
IServiceConfiguration<IDiscoveryService>

A service configuration.

clientCredentials
ClientCredentials

The logon credentials of the client.

Applies to

DiscoveryServiceProxy(IServiceManagement<IDiscoveryService>, SecurityTokenResponse)

Initializes a new instance of the DiscoveryServiceProxy class using a service management and a security token response.

public:
 DiscoveryServiceProxy(Microsoft::Xrm::Sdk::Client::IServiceManagement<Microsoft::Xrm::Sdk::Discovery::IDiscoveryService ^> ^ serviceManagement, Microsoft::Xrm::Sdk::Client::SecurityTokenResponse ^ securityTokenResponse);
public DiscoveryServiceProxy (Microsoft.Xrm.Sdk.Client.IServiceManagement<Microsoft.Xrm.Sdk.Discovery.IDiscoveryService> serviceManagement, Microsoft.Xrm.Sdk.Client.SecurityTokenResponse securityTokenResponse);
new Microsoft.Xrm.Sdk.Client.DiscoveryServiceProxy : Microsoft.Xrm.Sdk.Client.IServiceManagement<Microsoft.Xrm.Sdk.Discovery.IDiscoveryService> * Microsoft.Xrm.Sdk.Client.SecurityTokenResponse -> Microsoft.Xrm.Sdk.Client.DiscoveryServiceProxy
Public Sub New (serviceManagement As IServiceManagement(Of IDiscoveryService), securityTokenResponse As SecurityTokenResponse)

Parameters

serviceManagement
IServiceManagement<IDiscoveryService>

A service management.

securityTokenResponse
SecurityTokenResponse

A security token response.

Applies to

DiscoveryServiceProxy(IServiceManagement<IDiscoveryService>, ClientCredentials)

Initializes a new instance of the DiscoveryServiceProxy class using a service management and client credentials.

public:
 DiscoveryServiceProxy(Microsoft::Xrm::Sdk::Client::IServiceManagement<Microsoft::Xrm::Sdk::Discovery::IDiscoveryService ^> ^ serviceManagement, System::ServiceModel::Description::ClientCredentials ^ clientCredentials);
public DiscoveryServiceProxy (Microsoft.Xrm.Sdk.Client.IServiceManagement<Microsoft.Xrm.Sdk.Discovery.IDiscoveryService> serviceManagement, System.ServiceModel.Description.ClientCredentials clientCredentials);
new Microsoft.Xrm.Sdk.Client.DiscoveryServiceProxy : Microsoft.Xrm.Sdk.Client.IServiceManagement<Microsoft.Xrm.Sdk.Discovery.IDiscoveryService> * System.ServiceModel.Description.ClientCredentials -> Microsoft.Xrm.Sdk.Client.DiscoveryServiceProxy
Public Sub New (serviceManagement As IServiceManagement(Of IDiscoveryService), clientCredentials As ClientCredentials)

Parameters

serviceManagement
IServiceManagement<IDiscoveryService>

A service management.

clientCredentials
ClientCredentials

The logon credentials of the client.

Applies to

DiscoveryServiceProxy(Uri, Uri, ClientCredentials, ClientCredentials)

Initializes a new instance of the DiscoveryServiceProxy class using a discovery service URI, home realm URI, and client and device credentials.

public:
 DiscoveryServiceProxy(Uri ^ uri, Uri ^ homeRealmUri, System::ServiceModel::Description::ClientCredentials ^ clientCredentials, System::ServiceModel::Description::ClientCredentials ^ deviceCredentials);
public DiscoveryServiceProxy (Uri uri, Uri homeRealmUri, System.ServiceModel.Description.ClientCredentials clientCredentials, System.ServiceModel.Description.ClientCredentials deviceCredentials);
new Microsoft.Xrm.Sdk.Client.DiscoveryServiceProxy : Uri * Uri * System.ServiceModel.Description.ClientCredentials * System.ServiceModel.Description.ClientCredentials -> Microsoft.Xrm.Sdk.Client.DiscoveryServiceProxy
Public Sub New (uri As Uri, homeRealmUri As Uri, clientCredentials As ClientCredentials, deviceCredentials As ClientCredentials)

Parameters

uri
Uri

The URI of the discovery service.

homeRealmUri
Uri

This parameter is set to a non-null value when a second ADFS instance is configured as an identity provider to the ADFS instance that Microsoft Dynamics CRM 2011 has been configured with for claims authentication. The parameter value is the URI of the WS-Trust metadata endpoint of the second ADFS instance.

clientCredentials
ClientCredentials

The logon credentials of the client.

deviceCredentials
ClientCredentials

The Microsoft account device credentials.

Applies to