Share via


ServiceConfigurationFactory.CreateConfiguration Method

Definition

Overloads

CreateConfiguration<TService>(Uri)

Creates a service configuration.

CreateConfiguration<TService>(Uri, Boolean, Assembly)

Creates a service configuration

CreateConfiguration<TService>(Uri)

Creates a service configuration.

public:
generic <typename TService>
 static Microsoft::Xrm::Sdk::Client::IServiceConfiguration<TService> ^ CreateConfiguration(Uri ^ serviceUri);
public static Microsoft.Xrm.Sdk.Client.IServiceConfiguration<TService> CreateConfiguration<TService> (Uri serviceUri);
static member CreateConfiguration : Uri -> Microsoft.Xrm.Sdk.Client.IServiceConfiguration<'Service>
Public Shared Function CreateConfiguration(Of TService) (serviceUri As Uri) As IServiceConfiguration(Of TService)

Type Parameters

TService

Specifies a Microsoft Dynamics 365 service type: IDiscoveryService or IOrganizationService.

Parameters

serviceUri
Uri

Specifies the service’s URI.

Returns

A service configuration object.

Applies to

CreateConfiguration<TService>(Uri, Boolean, Assembly)

Creates a service configuration

public:
generic <typename TService>
 static Microsoft::Xrm::Sdk::Client::IServiceConfiguration<TService> ^ CreateConfiguration(Uri ^ serviceUri, bool enableProxyTypes, System::Reflection::Assembly ^ assembly);
public static Microsoft.Xrm.Sdk.Client.IServiceConfiguration<TService> CreateConfiguration<TService> (Uri serviceUri, bool enableProxyTypes, System.Reflection.Assembly assembly);
static member CreateConfiguration : Uri * bool * System.Reflection.Assembly -> Microsoft.Xrm.Sdk.Client.IServiceConfiguration<'Service>
Public Shared Function CreateConfiguration(Of TService) (serviceUri As Uri, enableProxyTypes As Boolean, assembly As Assembly) As IServiceConfiguration(Of TService)

Type Parameters

TService

Specifies a Microsoft Dynamics 365 service type: IDiscoveryService or IOrganizationService.

Parameters

serviceUri
Uri

Specifies the web service’s URI.

enableProxyTypes
Boolean

True to enable proxy types; otherwise, false.

assembly
Assembly

An assembly containing proxy types.

Returns

A service configuration object.

Applies to