Returns the property value.
命名空间: 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
Property type.
参数
- property
类型:Microsoft.SqlServer.Dac.Model.ModelPropertyClass
Property.
返回值
类型:T
Property Value.
异常
| 异常 | 条件 |
|---|---|
| DacModelException | If property does not exists on the object. |
| InvalidCastException | If the property type cannot be cast to T. |