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.
参数
- property
类型:Microsoft.SqlServer.Dac.Model.ModelPropertyClass
ModelPropertyClass property to retrieve.
返回值
类型:T
Property value.
异常
异常 | 条件 |
---|---|
DacModelException | If the supplied property is not supported on this instance. |
InvalidCastException | If the property type cannot be cast to T. |