次の方法で共有


TSqlObject.GetProperty<T> メソッド (ModelPropertyClass)

プロパティ値を返します。

名前空間:  Microsoft.SqlServer.Dac.Model
アセンブリ:  Microsoft.SqlServer.Dac.Extensions (Microsoft.SqlServer.Dac.Extensions.dll)

構文

'宣言
Public Function GetProperty(Of T) ( _
    property As ModelPropertyClass _
) As T
'使用
Dim instance As TSqlObject 
Dim property As ModelPropertyClass 
Dim returnValue As T

returnValue = instance.GetProperty(property)
public T GetProperty<T>(
    ModelPropertyClass property
)
public:
generic<typename T>
T GetProperty(
    ModelPropertyClass^ property
)
member GetProperty : 
        property:ModelPropertyClass -> 'T 
JScript は汎用の型およびメソッドをサポートしていません。

型パラメーター

  • T
    プロパティの型。

パラメーター

戻り値

型: T
プロパティ値。

例外

例外 条件
DacModelException

オブジェクト上に property が存在しない場合。

InvalidCastException

プロパティの型を T にキャストできない場合。

関連項目

参照

TSqlObject クラス

GetProperty オーバーロード

Microsoft.SqlServer.Dac.Model 名前空間