OrganizationServiceProxy.SdkClientVersion 属性

应用到: CRM 2015 on-prem, CRM Online

Gets or sets the version of the client.

命名空间: Microsoft.Xrm.Sdk.Client
程序集: Microsoft.Xrm.Sdk (在 Microsoft.Xrm.Sdk.dll 中)

语法

声明
Public Property SdkClientVersion As String
public string SdkClientVersion { get; set; }

属性值

Type: 字符串.
The version of the client.

备注

.NET clients using the current assemblies will pass the value ‘6.0.0.0’ or higher to indicate the client version. .NET clients using assemblies for earlier versions will not pass a value. This difference allows for messages that retrieve attribute metadata for the appropriate version. This applies to the following messages:

Microsoft Dynamics CRM 2013 和 Microsoft Dynamics CRM Online introduced a new attribute type: ImageAttributeMetadata. .NET assemblies for previous versions do not recognize this type and an error occurs attempting to deserialize them. When attribute metadata is retrieved, if the assembly does not pass a SdkClientVersion value ImageAttributeMetadata attributes will not be returned.

Clients that do not use .NET assemblies need to include SdkClientVersion with a value of ‘6.0.0.0’ or higher in order to receive ImageAttributeMetadata attributes.

For JavaScript, this value can be added to the SOAP header as shown in the following code snippet taken from the SDK.MetaData.js library described in Sample: Retrieve Entity Metadata Using JavaScript.

<soapenv:Header><a:SdkClientVersion xmlns:a=\"https://schemas.microsoft.com/xrm/2011/Contracts\">6.0</a:SdkClientVersion></soapenv:Header>

线程安全性

此类型的所有公共静态(Visual Basic 中的 Shared)成员都是线程安全成员。不保证任何实例成员是线程安全成员。

平台

开发平台

Windows Vista、Windows Server 2003 和

目标平台

Windows Vista,Windows XP

Change History

另请参阅

参考

OrganizationServiceProxy 类
OrganizationServiceProxy 成员
Microsoft.Xrm.Sdk.Client 命名空间

Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.