共用方式為


DatabaseTaskHost.SetValue 方法

設定屬性的目前值。

命名空間:  Microsoft.Data.Schema.Build
組件:  Microsoft.Data.Schema (在 Microsoft.Data.Schema.dll 中)

語法

'宣告
Protected Overridable Function SetValue ( _
    propertyName As String, _
    value As Object, _
    source As DatabaseTaskHost..::..PropertySource, _
    <OutAttribute> ByRef defaultUsed As Boolean _
) As Boolean
protected virtual bool SetValue(
    string propertyName,
    Object value,
    DatabaseTaskHost..::..PropertySource source,
    out bool defaultUsed
)
protected:
virtual bool SetValue(
    String^ propertyName, 
    Object^ value, 
    DatabaseTaskHost..::..PropertySource source, 
    [OutAttribute] bool% defaultUsed
)
abstract SetValue : 
        propertyName:string * 
        value:Object * 
        source:DatabaseTaskHost..::..PropertySource * 
        defaultUsed:bool byref -> bool 
override SetValue : 
        propertyName:string * 
        value:Object * 
        source:DatabaseTaskHost..::..PropertySource * 
        defaultUsed:bool byref -> bool 
protected function SetValue(
    propertyName : String, 
    value : Object, 
    source : DatabaseTaskHost..::..PropertySource, 
    defaultUsed : boolean
) : boolean

參數

  • defaultUsed
    型別:System.Boolean%
    指定是否使用這個屬性的預設值。

傳回值

型別:System.Boolean
如果設定成功,則傳回 true。

.NET Framework 安全性

請參閱

參考

DatabaseTaskHost 類別

Microsoft.Data.Schema.Build 命名空間