共用方式為


IVsDataSource.GetProperty 方法 (String)

取得 DDEX 資料來源的屬性。

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

語法

'宣告
Function GetProperty ( _
    name As String _
) As Object
Object GetProperty(
    string name
)
Object^ GetProperty(
    String^ name
)
abstract GetProperty : 
        name:string -> Object
function GetProperty(
    name : String
) : Object

參數

  • name
    類型:String

    要擷取的屬性名稱。

傳回值

類型:Object
屬性的值,則為,如果存在;則為,否則為 nullnull 參考 (即 Visual Basic 中的 Nothing)。

例外狀況

例外狀況 條件
ArgumentNullException

name 參數為 nullnull 參考 (即 Visual Basic 中的 Nothing)。

備註

GetProperty 方法的委派,這個方法會傳遞 Empty 做為提供者參數的值。

.NET Framework 安全性

請參閱

參考

IVsDataSource 介面

GetProperty 多載

Microsoft.VisualStudio.Data.Core 命名空間