DataBusDataSource.GetProperty 方法

定義

取得類別中 DataBusDataSource 特定屬性。

多載

名稱 Description
GetProperty<T>(String)

取得指定名稱資料來源的屬性。

GetProperty<T>(String, T)

取得指定名稱資料來源的屬性。

GetProperty<T>(String)

取得指定名稱資料來源的屬性。

protected:
generic <typename T>
 T GetProperty(System::String ^ propertyName);
protected T GetProperty<T>(string propertyName);
member this.GetProperty : string -> 'T
Protected Function GetProperty(Of T) (propertyName As String) As T

類型參數

T

該物業的通用類型。

參數

propertyName
String

屬性名稱。

傳回

T

指定為該物業的名稱。

適用於

GetProperty<T>(String, T)

取得指定名稱資料來源的屬性。

protected:
generic <typename T>
 T GetProperty(System::String ^ propertyName, T defaultValue);
protected T GetProperty<T>(string propertyName, T defaultValue);
member this.GetProperty : string * 'T -> 'T
Protected Function GetProperty(Of T) (propertyName As String, defaultValue As T) As T

類型參數

T

房產類型。

參數

propertyName
String

一個代表屬性名稱的字串。

defaultValue
T

屬性的預設值。

傳回

T

一個代表屬性預設值的物件。

適用於