Share via


OrganizationService Class

 

Applies To: Dynamics CRM 2015

A wrapper class around the IOrganizationService that manages the details of setting up an OrganizationServiceProxy or other arbitrary IOrganizationService objects. When paired with an OrganizationServiceCache object, becomes a cached service. (Developer Extensions)

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

Inheritance Hierarchy

System.Object
  Microsoft.Xrm.Client.Services.OrganizationService
    Microsoft.Xrm.Client.Services.CachedOrganizationService

Syntax

public class OrganizationService : IDisposable, IOrganizationService, 
    IInitializable
public ref class OrganizationService : IDisposable, IOrganizationService, 
    IInitializable
type OrganizationService = 
    class
        interface IDisposable
        interface IOrganizationService
        interface IInitializable
    end
Public Class OrganizationService
    Implements IDisposable, IOrganizationService, IInitializable

Constructors

Name Description
System_CAPS_pubmethod OrganizationService(CrmConnection)

Initializes a new instance of the OrganizationService class.

System_CAPS_pubmethod OrganizationService(IOrganizationService)

Initializes a new instance of the OrganizationService class.

System_CAPS_pubmethod OrganizationService(String)

Initializes a new instance of the OrganizationService class.

Properties

Name Description
System_CAPS_pubproperty InnerService

Methods

Name Description
System_CAPS_pubmethod Associate(String, Guid, Relationship, EntityReferenceCollection)

Creates a link between records. (Developer Extensions)

System_CAPS_protmethod CheckIfTokenIsExpired(SecurityTokenResponse, Nullable<TimeSpan>)

System_CAPS_pubmethod Create(Entity)

Creates a record. (Developer Extensions)

System_CAPS_protmethod CreateServiceConfiguration(CrmConnection)

System_CAPS_protmethod CreateUserTokenResponse(CrmConnection, IServiceConfiguration<IOrganizationService>)

System_CAPS_pubmethod Delete(String, Guid)

Deletes a record. (Developer Extensions)

System_CAPS_pubmethod Disassociate(String, Guid, Relationship, EntityReferenceCollection)

Deletes a link between records. (Developer Extensions)

System_CAPS_pubmethod Dispose()

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod Execute(OrganizationRequest)

Executes a message in the form of a request, and returns a response. (Developer Extensions)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_protmethod GetServiceConfiguration(CrmConnection)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod GetUserTokenResponse(CrmConnection, IServiceConfiguration<IOrganizationService>)

System_CAPS_pubmethod Initialize(String, NameValueCollection)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethod RegisterDeviceCredentials(ClientCredentials)

System_CAPS_pubmethod Retrieve(String, Guid, ColumnSet)

Retrieves a record. (Developer Extensions)

System_CAPS_pubmethod RetrieveMultiple(QueryBase)

Retrieves a collection of records. (Developer Extensions)

System_CAPS_protmethod ToOrganizationService(CrmConnection)

System_CAPS_protmethod ToOrganizationServiceProxy(CrmConnection)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod Update(Entity)

Updates an existing record. (Developer Extensions)

Extension Methods

Name Description
System_CAPS_pubmethod Execute<TResponse>(OrganizationRequest)

Extensions to the core Execute method. (Developer Extensions)(Defined by OrganizationServiceExtensions.)

System_CAPS_pubmethod FetchXmlToQueryExpression(String)

Extensions to the core FetchXmlToQueryExpressionRequest message. (Developer Extensions) (Developer Extensions)(Defined by OrganizationServiceExtensions.)

System_CAPS_pubmethod RetrieveEntity(RetrieveEntityRequest)

Overloaded. (Defined by OrganizationServiceExtensions.)

System_CAPS_pubmethod RetrieveEntity(String, EntityFilters, Boolean)

Overloaded. (Defined by OrganizationServiceExtensions.)

System_CAPS_pubmethod RetrieveMultiple(RetrieveMultipleRequest)

Overloaded. Extensions to the core RetrieveMultiple method. (Developer Extensions)(Defined by OrganizationServiceExtensions.)

System_CAPS_pubmethod SerializeByJson(IEnumerable<Type>)

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

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Xrm.Client.Services Namespace
Developer extensions for Microsoft Dynamics CRM 2015
Simplified connection to Microsoft Dynamics CRM 2015

Return to top

© 2017 Microsoft. All rights reserved. Copyright