DataBusDataSource.GetProperty メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
DataBusDataSource クラスの特定のプロパティを取得します。
オーバーロード
| 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
プロパティの既定値を表すオブジェクト。