共用方式為


ModelRelationshipInstance.GetProperty<T> 方法 (ModelPropertyClass)

Retrieves properties for this relationship instance.

命名空間:  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 of the property value.

參數

傳回值

型別:T
Property value.

例外狀況

例外狀況 條件
DacModelException

If the supplied property is not supported on this instance.

InvalidCastException

If the property type cannot be cast to T.

請參閱

參考

ModelRelationshipInstance 類別

GetProperty 多載

Microsoft.SqlServer.Dac.Model 命名空間