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
需要更新其值的屬性名稱。
- propertyValue
型別:System.Object
要更新的屬性值。