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 命名空间