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
需要移除的屬性值。
備註
從集合中移除指定的資源,由目標物件上的導覽屬性所識別。 此作業會刪除由關聯性所繫結兩個資源物件之間的關聯性。