设置目标对象上的指定引用属性的值。
命名空间: System.Data.Services
程序集: Microsoft.Data.Services(在 Microsoft.Data.Services.dll 中)
语法
声明
Sub SetReference ( _
targetResource As Object, _
propertyName As String, _
propertyValue As Object _
)
用法
Dim instance As IUpdatable
Dim targetResource As Object
Dim propertyName As String
Dim propertyValue As Object
instance.SetReference(targetResource, _
propertyName, propertyValue)
void SetReference(
Object targetResource,
string propertyName,
Object propertyValue
)
void SetReference(
Object^ targetResource,
String^ propertyName,
Object^ propertyValue
)
abstract SetReference :
targetResource:Object *
propertyName:string *
propertyValue:Object -> unit
function SetReference(
targetResource : Object,
propertyName : String,
propertyValue : Object
)
参数
- targetResource
类型:System.Object
定义属性的目标对象。
- propertyName
类型:System.String
其值需要更新的属性的名称。
- propertyValue
类型:System.Object
要更新的属性值。