Share via


EntityFrameworkDataServiceProvider.AddReferenceToCollection Method

Adds the given value to the collection

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

Syntax

'Declaration
Public Overridable Sub AddReferenceToCollection ( _
    targetResource As Object, _
    propertyName As String, _
    resourceToBeAdded As Object _
)
'Usage
Dim instance As EntityFrameworkDataServiceProvider 
Dim targetResource As Object 
Dim propertyName As String 
Dim resourceToBeAdded As Object

instance.AddReferenceToCollection(targetResource, _
    propertyName, resourceToBeAdded)
public virtual void AddReferenceToCollection(
    Object targetResource,
    string propertyName,
    Object resourceToBeAdded
)
public:
virtual void AddReferenceToCollection(
    Object^ targetResource, 
    String^ propertyName, 
    Object^ resourceToBeAdded
)
abstract AddReferenceToCollection : 
        targetResource:Object * 
        propertyName:string * 
        resourceToBeAdded:Object -> unit  
override AddReferenceToCollection : 
        targetResource:Object * 
        propertyName:string * 
        resourceToBeAdded:Object -> unit
public function AddReferenceToCollection(
    targetResource : Object, 
    propertyName : String, 
    resourceToBeAdded : Object
)

Parameters

  • targetResource
    Type: System.Object
    target object which defines the property
  • propertyName
    Type: System.String
    name of the property whose value needs to be updated
  • resourceToBeAdded
    Type: System.Object
    value of the property which needs to be added

Implements

IUpdatable.AddReferenceToCollection(Object, String, Object)

See Also

Reference

EntityFrameworkDataServiceProvider Class

System.Data.Services.Providers Namespace