IUpdatable.RemoveReferenceFromCollection Method

Removes the specified value from the collection.

Namespace:  System.Data.Services
Assembly:  Microsoft.Data.Services (in Microsoft.Data.Services.dll)

Syntax

'Declaration
Sub RemoveReferenceFromCollection ( _
    targetResource As Object, _
    propertyName As String, _
    resourceToBeRemoved As Object _
)
'Usage
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
)

Parameters

  • targetResource
    Type: System.Object
    The target object that defines the property.
  • propertyName
    Type: System.String
    The name of the property whose value needs to be updated.
  • resourceToBeRemoved
    Type: System.Object
    The property value that needs to be removed.

Remarks

Removes the specified resource from the collection identified by a navigation property on the target object. This operation deletes the relationship between the two resource objects bound by the relationship.

See Also

Reference

IUpdatable Interface

System.Data.Services Namespace