EntityState 列挙
適用対象: CRM 2015 on-prem, CRM Online
Indicates the state of an entity as tracked by the OrganizationServiceContext and indicates to the server the operation that should be performed for a related entity.
名前空間: Microsoft.Xrm.Sdk
アセンブリ: Microsoft.Xrm.Sdk (Microsoft.Xrm.Sdk.dll に含まれる)
構文
'宣言
<DataContractAttribute(Name:="EntityState", Namespace:="https://schemas.microsoft.com/xrm/2011/Contracts")> _
Public Enumeration EntityState
[DataContractAttribute(Name="EntityState", Namespace="https://schemas.microsoft.com/xrm/2011/Contracts")]
public enum EntityState
メンバー
メンバー名 | 説明 |
---|---|
Changed | The entity was changed since the last call to SaveChanges. Value = 2. |
Created | The entity was created since the last call to SaveChanges. Value = 1. |
Unchanged | The entity is unchanged since the last call to SaveChanges. Value = 0. |
備考
The OrganizationServiceContext sets this value after the SaveChanges method is called and uses this value to track changes to entities. You can also set this value to Changed for a related entity to indicate to the service context that the related entity has been changed and that those changes need to be passed to the server. The service context sends changes to the server when the SaveChanges method is called.
プラットフォーム
開発プラットフォーム
Windows Vista、Windows Server 2003、および
対象プラットフォーム
Windows Vista、Windows XP
関連項目
参照
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.