共用方式為


AdoDotNetDataSourceInformation.RetrieveValue 方法

擷取指定的資料來源資訊屬性的值。

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

語法

'宣告
Protected Overrides Function RetrieveValue ( _
    propertyName As String _
) As Object
protected override Object RetrieveValue(
    string propertyName
)
protected:
virtual Object^ RetrieveValue(
    String^ propertyName
) override
abstract RetrieveValue : 
        propertyName:string -> Object  
override RetrieveValue : 
        propertyName:string -> Object
protected override function RetrieveValue(
    propertyName : String
) : Object

參數

  • propertyName
    類型:String

    資料來源資訊屬性的名稱。

傳回值

類型:Object
如果不受支援的屬性,傳回資料來源資訊屬性值則傳回 nullnull 參考 (即 Visual Basic 中的 Nothing) 。

例外狀況

例外狀況 條件
ArgumentNullException

propertyName 參數為 null。

備註

基底類別會將擷取的快取中的值,然後,,當此只呼叫這個方法一次資料來源資訊屬性。 因此,這個方法的實作不需要快取的值。

這個方法的基底實作會傳回 nullnull 參考 (即 Visual Basic 中的 Nothing)。

.NET Framework 安全性

請參閱

參考

AdoDotNetDataSourceInformation 類別

Microsoft.VisualStudio.Data.AdoDotNet 命名空間