IUpdatable.RemoveReferenceFromCollection 方法
从集合中移除指定的值。
命名空间: System.Data.Services
程序集: Microsoft.Data.Services(在 Microsoft.Data.Services.dll 中)
语法
声明
Sub RemoveReferenceFromCollection ( _
targetResource As Object, _
propertyName As String, _
resourceToBeRemoved As Object _
)
用法
Dim instance As IUpdatable
Dim targetResource As Object
Dim propertyName As String
Dim resourceToBeRemoved As Object
instance.RemoveReferenceFromCollection(targetResource, _
propertyName, resourceToBeRemoved)
void RemoveReferenceFromCollection(
Object targetResource,
string propertyName,
Object resourceToBeRemoved
)
void RemoveReferenceFromCollection(
Object^ targetResource,
String^ propertyName,
Object^ resourceToBeRemoved
)
abstract RemoveReferenceFromCollection :
targetResource:Object *
propertyName:string *
resourceToBeRemoved:Object -> unit
function RemoveReferenceFromCollection(
targetResource : Object,
propertyName : String,
resourceToBeRemoved : Object
)
参数
- targetResource
类型:System.Object
定义属性的目标对象。
- propertyName
类型:System.String
其值需要更新的属性的名称。
- resourceToBeRemoved
类型:System.Object
需要删除的属性值。
注释
从目标对象上的导航属性所标识的集合中移除指定资源。 此操作将删除因该关系而绑定在一起的两个资源对象之间的关系。