Share via


OrganizationServiceProxy Constructors

Definition

Overloads

OrganizationServiceProxy(IServiceConfiguration<IOrganizationService>, SecurityTokenResponse)

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

OrganizationServiceProxy(IServiceConfiguration<IOrganizationService>, ClientCredentials)

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

OrganizationServiceProxy(IServiceManagement<IOrganizationService>, SecurityTokenResponse)

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

OrganizationServiceProxy(IServiceManagement<IOrganizationService>, ClientCredentials)

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

OrganizationServiceProxy(Uri, Uri, ClientCredentials, ClientCredentials)

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

OrganizationServiceProxy(IServiceConfiguration<IOrganizationService>, SecurityTokenResponse)

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

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

Parameters

serviceConfiguration
IServiceConfiguration<IOrganizationService>

A service configuration.

securityTokenResponse
SecurityTokenResponse

A security token response.

See also

Applies to

OrganizationServiceProxy(IServiceConfiguration<IOrganizationService>, ClientCredentials)

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

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

Parameters

serviceConfiguration
IServiceConfiguration<IOrganizationService>

A service configuration.

clientCredentials
ClientCredentials

The logon credentials of the client.

Applies to

OrganizationServiceProxy(IServiceManagement<IOrganizationService>, SecurityTokenResponse)

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

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

Parameters

serviceManagement
IServiceManagement<IOrganizationService>

A service management.

securityTokenResponse
SecurityTokenResponse

A security token response.

Applies to

OrganizationServiceProxy(IServiceManagement<IOrganizationService>, ClientCredentials)

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

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

Parameters

serviceManagement
IServiceManagement<IOrganizationService>

A service management.

clientCredentials
ClientCredentials

The logon credentials of the client.

Applies to

OrganizationServiceProxy(Uri, Uri, ClientCredentials, ClientCredentials)

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

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

Parameters

uri
Uri

The URI of the organization 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 Windows Live ID device credentials.

Applies to