Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
Provides the low-level interaction and wrapper methods to connect to Microsoft Dynamics CRM and execute actions.
Namespace: Microsoft.Xrm.Tooling.Connector
Assembly: Microsoft.Xrm.Tooling.Connector (in Microsoft.Xrm.Tooling.Connector.dll)
Inheritance Hierarchy
System.Object
Microsoft.Xrm.Tooling.Connector.CrmServiceClient
Syntax
public sealed class CrmServiceClient : IOrganizationService
Public NotInheritable Class CrmServiceClient
Implements IOrganizationService
Constructors
Name | Description | |
---|---|---|
![]() |
CrmServiceClient(NetworkCredential, AuthenticationType, String, String, String, Boolean, Boolean, OrganizationDetail) | Initializes a new instance of the CrmServiceClient class using the specified network credentials and authentication type as AD or IFD |
![]() |
CrmServiceClient(NetworkCredential, String, String, String, Boolean, Boolean, OrganizationDetail) | Initializes a new instance of the CrmServiceClient class using the specified network credentials and Active Directory (AD) authentication. |
![]() |
CrmServiceClient(OrganizationServiceProxy) | Initializes a new instance of the CrmServiceClient class using the Organization service proxy provided by the user. |
![]() |
CrmServiceClient(OrganizationWebProxyClient) | Initializes a new instance of the CrmServiceClient class using the OrganizationWebProxyClient instance provided by the user. |
![]() |
CrmServiceClient(String) | Initializes a new instance of the CrmServiceClient class using a connection string. |
![]() |
CrmServiceClient(String, SecureString, String, String, Boolean, Boolean, OrganizationDetail, Boolean) | Initializes a new instance of the CrmServiceClient class using the specified network credentials and authentication type as Office 365. |
![]() |
CrmServiceClient(String, SecureString, String, String, Boolean, OrganizationDetail, UserIdentifier, String, Uri, String, OrganizationWebProxyClient, PromptBehavior) | Initializes a new instance of the CrmServiceClient using the OAuth protocol to connect to your CRM Online instance in Office 365. |
![]() |
CrmServiceClient(String, SecureString, String, String, String, String, String, Boolean, Boolean, OrganizationDetail) | Initializes a new instance of the CrmServiceClient class using the specified network credentials and claims-based authentication. |
![]() |
CrmServiceClient(String, SecureString, String, String, String, String, String, Boolean, Boolean, OrganizationDetail, UserIdentifier, String, Uri, String, OrganizationWebProxyClient, PromptBehavior) | Initializes a new instance of the CrmServiceClient class using the specified network credentials and OAuth protocol. |
Properties
Name | Description | |
---|---|---|
![]() |
ActiveAuthenticationType | Gets the authentication type used for the active CRM connection. |
![]() |
Authority | |
![]() |
CallerId | |
![]() |
ConnectedOrgFriendlyName | Gets the friendly name of the organization that you are connected to. |
![]() |
ConnectedOrgPublishedEndpoints | Gets the endpoint collection for the organization you are connected to. |
![]() |
ConnectedOrgUniqueName | Get the unique name of the organization you are connected to. |
![]() |
ConnectedOrgVersion | Gets the version number of the organization you are connected to. If accessed before you are connected to an organization, null or 0.0 is returned. |
![]() |
ConnectionLockObject | Gets the connection lock object that is used to control connection access for various threads. This should be used to lock the connection if you are using the Microsoft Dynamics CRM queries via LINQ. |
![]() |
CrmConnectOrgUriActual | Gets the actual URI used to connect to Microsoft Dynamics CRM. This URI could be influenced by user defined variables. |
![]() |
IsBatchOperationsAvailable | Gets information about the availability of batch operation. If true, batch operations are available. |
![]() |
IsReady | Gets the service connection status. If true, the service is ready to accept requests. |
![]() |
LastCrmError | Gets the last error that occurred while attempting to connect to Microsoft Dynamics CRM. |
![]() |
LastCrmException | Gets the last exception that occurred while attempting to connect to Microsoft Dynamics CRM. |
![]() |
OAuthUserId | Gets the current user ID used for connecting to CRM using OAuth. |
![]() |
OrganizationServiceProxy | Gets the native Microsoft Dynamics CRM organization service. |
![]() |
OrganizationWebProxyClient | Gets the CRM OrganizationWebProxyClient instance for the active CRM connection using OAuth. |
![]() |
SdkVersionProperty |
Methods
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.Tooling.Connector Namespace
Build Windows client applications using the XRM tools
Return to top
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright