IUpdatable.SetValue 方法

将目标资源上具有指定名称的属性值设置为指定属性值。

命名空间:  System.Data.Services
程序集:  Microsoft.Data.Services(在 Microsoft.Data.Services.dll 中)

语法

声明
Sub SetValue ( _
    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.SetValue(targetResource, propertyName, _
    propertyValue)
void SetValue(
    Object targetResource,
    string propertyName,
    Object propertyValue
)
void SetValue(
    Object^ targetResource, 
    String^ propertyName, 
    Object^ propertyValue
)
abstract SetValue : 
        targetResource:Object * 
        propertyName:string * 
        propertyValue:Object -> unit 
function SetValue(
    targetResource : Object, 
    propertyName : String, 
    propertyValue : Object
)

参数

  • targetResource
    类型:System.Object
    定义属性的目标对象。
  • propertyName
    类型:System.String
    其值需要更新的属性的名称。

请参阅

参考

IUpdatable 接口

System.Data.Services 命名空间