OrganizationWebProxyClient Class
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
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 Class OrganizationWebProxyClient
Inherits WebProxyClient(Of IOrganizationService)
Implements IOrganizationService
Constructors
Name | Description | |
---|---|---|
OrganizationWebProxyClient(Uri, Assembly) | Initializes a new instance of theOrganizationWebProxyClient class using an Organization service URL and an assembly. |
|
OrganizationWebProxyClient(Uri, Boolean) | Initializes a new instance of theOrganizationWebProxyClient class using an Organization service URL. |
|
OrganizationWebProxyClient(Uri, TimeSpan, Assembly) | Initializes a new instance of theOrganizationWebProxyClient class using an Organization service URL, a time span, and an assembly. |
|
OrganizationWebProxyClient(Uri, TimeSpan, Boolean) | Initializes a new instance of theOrganizationWebProxyClient class using an Organization service URL and time span. |
Properties
Name | Description | |
---|---|---|
CallerId | Gets or sets the ID of the user for whom SDK calls are made on behalf of. |
|
CallerRegardingObjectId | ||
Channel | (Inherited from ClientBase<TChannel>.) |
|
ChannelFactory | (Inherited from ClientBase<TChannel>.) |
|
ClientCredentials | (Inherited from ClientBase<TChannel>.) |
|
Endpoint | (Inherited from ClientBase<TChannel>.) |
|
HeaderToken | The access token returned from OAuth authentication.(Inherited from WebProxyClient<TService>.) |
|
InnerChannel | (Inherited from ClientBase<TChannel>.) |
|
SdkClientVersion | The version of your client application.(Inherited from WebProxyClient<TService>.) |
|
State | (Inherited from ClientBase<TChannel>.) |
|
SyncOperationType | For internal use only. |
|
userType |
Methods
Explicit Interface Implementations
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 Organization Service to read and write data or metadata
Authenticate the user with the web services
Return to top
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright