应用到: CRM 2015 on-prem, CRM Online
Removes the Association between 2 entity items where an M2M Relationship Exists.
命名空间: Microsoft.Xrm.Tooling.Connector
程序集: Microsoft.Xrm.Tooling.Connector (在 Microsoft.Xrm.Tooling.Connector.dll 中)
语法
声明
Public Function DeleteEntityAssociation ( _
entityName1 As String, _
entity1Id As Guid, _
entityName2 As String, _
entity2Id As Guid, _
relationshipName As String, _
<OptionalAttribute> Optional batchId As Guid = Nothing _
) As Boolean
public bool DeleteEntityAssociation (
string entityName1,
Guid entity1Id,
string entityName2,
Guid entity2Id,
string relationshipName,
[OptionalAttribute] Guid batchId
)
参数
- entityName1
Entity on one side of the relationship
- entity1Id
The Id of the record on the first side of the relationship
- entityName2
Entity on the second side of the relationship
- entity2Id
The Id of the record on the second side of the relationship
- relationshipName
Relationship name between the 2 entities
- batchId
Optional: if set to a valid GUID, generated by the Create Batch Request Method, will assigned the request to the batch for later execution, on fail, runs the request immediately
返回值
true on success, false on fail
线程安全性
此类型的所有公共静态(Visual Basic 中的 Shared)成员都是线程安全成员。不保证任何实例成员是线程安全成员。
平台
开发平台
Windows Vista、Windows Server 2003 和
目标平台
Windows 98,Windows 2000,Windows 2000 Server,Windows CE,Windows Server 2008,Windows 98 Second Edition,Pocket PC,智能电话,Windows Server 2003,Windows XP Professional,Windows Vista,Windows XP
另请参阅
参考
CrmServiceClient 类
CrmServiceClient 成员
Microsoft.Xrm.Tooling.Connector 命名空间
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.