Share via


EntityFrameworkDataServiceProvider.SetReference Method

Sets the value of the given reference property on the target object

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

Syntax

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

instance.SetReference(targetResource, _
    propertyName, propertyValue)
public virtual void SetReference(
    Object targetResource,
    string propertyName,
    Object propertyValue
)
public:
virtual void SetReference(
    Object^ targetResource, 
    String^ propertyName, 
    Object^ propertyValue
)
abstract SetReference : 
        targetResource:Object * 
        propertyName:string * 
        propertyValue:Object -> unit  
override SetReference : 
        targetResource:Object * 
        propertyName:string * 
        propertyValue:Object -> unit
public function SetReference(
    targetResource : Object, 
    propertyName : String, 
    propertyValue : 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

Implements

IUpdatable.SetReference(Object, String, Object)

See Also

Reference

EntityFrameworkDataServiceProvider Class

System.Data.Services.Providers Namespace