OrganizationServiceInstanceMode Enumeration

 

Applies To: Dynamics CRM 2015

Contains values to specify how CrmConfigurationManager will adjust its instantiation behavior. (Developer Extensions)

Namespace:   Microsoft.Xrm.Client.Configuration
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Syntax

public enum OrganizationServiceInstanceMode
public enum class OrganizationServiceInstanceMode
type OrganizationServiceInstanceMode
Public Enumeration OrganizationServiceInstanceMode

Members

Member name Description
PerInstance

Return a new instance on each call. Value = 3.

PerName

Return a single instance for each configuration element specified. Value = 1.

PerRequest

Return the same first instance in the context of a Web request, For example, one instance for each HttpContext instance. Value = 2.

Static

Always return the same static instance. Value = 0.

SerializeByJson(IEnumerable<Type>)

Serialize an object using the DataContractJsonSerializer.(Defined by ObjectExtensions.)

See Also

Microsoft.Xrm.Client.Configuration Namespace
Developer extensions for Microsoft Dynamics CRM 2015

Return to top

© 2017 Microsoft. All rights reserved. Copyright