次の方法で共有


ModelRelationshipInstance.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 ModelRelationshipInstance 
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
    プロパティ値の Type

パラメーター

戻り値

型: T
プロパティ値。

例外

例外 条件
DacModelException

指定された property がこのインスタンスでサポートされていない場合。

InvalidCastException

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

関連項目

参照

ModelRelationshipInstance クラス

GetProperty オーバーロード

Microsoft.SqlServer.Dac.Model 名前空間