共用方式為


DataConnectionProperties.InitializeValue 方法

使用指定的連接屬性的值。

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

語法

'宣告
Protected Sub InitializeValue ( _
    propertyName As String, _
    value As Object _
)
protected void InitializeValue(
    string propertyName,
    Object value
)
protected:
void InitializeValue(
    String^ propertyName, 
    Object^ value
)
member InitializeValue : 
        propertyName:string * 
        value:Object -> unit 
protected function InitializeValue(
    propertyName : String, 
    value : Object
)

參數

  • propertyName
    型別:System.String
    要初始化的屬性名稱。

例外狀況

例外狀況 條件
ArgumentNullException

propertyName 參數為 null。

InvalidCastException

指定的值無法轉換成屬性型別。

備註

這個方法通常是 InitializeValues 方法中呼叫。

.NET Framework 安全性

請參閱

參考

DataConnectionProperties 類別

Microsoft.VisualStudio.Data 命名空間