Dela via


OrganizationWebProxyClient Class

 

Applies To: Dynamics CRM 2015

Implements IOrganizationService and provides an authenticated connection to the Organization.svc/web endpoint. This /web endpoint is also used by web resources.

Namespace:   Microsoft.Xrm.Sdk.WebServiceClient
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Inheritance Hierarchy

System.Object
  System.ServiceModel.ClientBase<TChannel>
    Microsoft.Xrm.Sdk.WebServiceClient.WebProxyClient<TService>
      Microsoft.Xrm.Sdk.WebServiceClient.OrganizationWebProxyClient

Syntax

public class OrganizationWebProxyClient : WebProxyClient<IOrganizationService>, 
    IOrganizationService
public ref class OrganizationWebProxyClient : WebProxyClient<IOrganizationService^>, 
    IOrganizationService
type OrganizationWebProxyClient = 
    class
        inherit WebProxyClient<IOrganizationService>
        interface IOrganizationService
    end
Public Class OrganizationWebProxyClient
    Inherits WebProxyClient(Of IOrganizationService)
    Implements IOrganizationService

Constructors

Name Description
System_CAPS_pubmethod OrganizationWebProxyClient(Uri, Assembly)

Initializes a new instance of theOrganizationWebProxyClient class using an Organization service URL and an assembly.

System_CAPS_pubmethod OrganizationWebProxyClient(Uri, Boolean)

Initializes a new instance of theOrganizationWebProxyClient class using an Organization service URL.

System_CAPS_pubmethod OrganizationWebProxyClient(Uri, TimeSpan, Assembly)

Initializes a new instance of theOrganizationWebProxyClient class using an Organization service URL, a time span, and an assembly.

System_CAPS_pubmethod OrganizationWebProxyClient(Uri, TimeSpan, Boolean)

Initializes a new instance of theOrganizationWebProxyClient class using an Organization service URL and time span.

Properties

Name Description
System_CAPS_pubproperty CallerId

Gets or sets the ID of the user for whom SDK calls are made on behalf of.

System_CAPS_protproperty Channel

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubproperty ChannelFactory

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubproperty ClientCredentials

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubproperty Endpoint

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubproperty HeaderToken

The access token returned from OAuth authentication.(Inherited from WebProxyClient<TService>.)

System_CAPS_pubproperty InnerChannel

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubproperty SdkClientVersion

The version of your client application.(Inherited from WebProxyClient<TService>.)

System_CAPS_pubproperty State

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubproperty SyncOperationType

For internal use only.

Methods

Name Description
System_CAPS_pubmethod Abort()

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubmethod Associate(String, Guid, Relationship, EntityReferenceCollection)

Creates a link between records.

System_CAPS_protmethod AssociateCore(String, Guid, Relationship, EntityReferenceCollection)

For internal use only.

System_CAPS_pubmethod Close()

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubmethod Create(Entity)

Creates a record.

System_CAPS_protmethod CreateChannel()

(Inherited from ClientBase<TChannel>.)

System_CAPS_protmethod CreateCore(Entity)

For internal use only.

System_CAPS_protmethod CreateNewInitializer()

Creates the WCF proxy client initializer which gets invoked on every SDK method call. This method makes sure that the access token and other header values are added to the outbound call.(Overrides WebProxyClient<TService>.CreateNewInitializer().)

System_CAPS_pubmethod Delete(String, Guid)

Deletes a record.

System_CAPS_protmethod DeleteCore(String, Guid)

For internal use only.

System_CAPS_pubmethod Disassociate(String, Guid, Relationship, EntityReferenceCollection)

Deletes a link between records.

System_CAPS_protmethod DisassociateCore(String, Guid, Relationship, EntityReferenceCollection)

For internal use only.

System_CAPS_pubmethod DisplayInitializationUI()

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubmethod Dispose()

Disposes the web proxy client object.(Inherited from WebProxyClient<TService>.)

System_CAPS_protmethod Dispose(Boolean)

Disposes the web proxy client object.(Inherited from WebProxyClient<TService>.)

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.

System_CAPS_protmethod ExecuteCore(OrganizationRequest)

For internal use only.

System_CAPS_protmethod Finalize()

Destructor for the WebProxyClient<TService> class.(Inherited from WebProxyClient<TService>.)

System_CAPS_protmethod GetDefaultValueForInitialization<T>()

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod InvokeAsync(ClientBase<TChannel>.BeginOperationDelegate, Object[], ClientBase<TChannel>.EndOperationDelegate, SendOrPostCallback, Object)

(Inherited from ClientBase<TChannel>.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod Open()

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubmethod Retrieve(String, Guid, ColumnSet)

Retrieves a record.

System_CAPS_protmethod RetrieveCore(String, Guid, ColumnSet)

For internal use only.

System_CAPS_pubmethod RetrieveMultiple(QueryBase)

Retrieves a collection of records.

System_CAPS_protmethod RetrieveMultipleCore(QueryBase)

For internal use only.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod Update(Entity)

Updates an existing record.

System_CAPS_protmethod UpdateCore(Entity)

For internal use only.

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privevent ICommunicationObject.Closed

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubinterfaceSystem_CAPS_privevent ICommunicationObject.Closing

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubinterfaceSystem_CAPS_privevent ICommunicationObject.Faulted

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubinterfaceSystem_CAPS_privevent ICommunicationObject.Opened

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubinterfaceSystem_CAPS_privevent ICommunicationObject.Opening

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IDisposable.Dispose()

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod ICommunicationObject.BeginClose(AsyncCallback, Object)

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object)

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod ICommunicationObject.BeginOpen(AsyncCallback, Object)

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object)

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod ICommunicationObject.Close(TimeSpan)

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod ICommunicationObject.EndClose(IAsyncResult)

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod ICommunicationObject.EndOpen(IAsyncResult)

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod ICommunicationObject.Open(TimeSpan)

(Inherited from ClientBase<TChannel>.)

Remarks

You must set the HeaderToken and SdkClientVersion property values before using the proxy object to make service calls.

To call the Organization web service using the IOrganizationService interface, cast the proxy instance to an IOrganizationService type.

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.Sdk.WebServiceClient Namespace
Use the IOrganizationService web service to read and write data or metadata
Authenticate the user with the web services

Return to top

© 2016 Microsoft. All rights reserved. Copyright