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. |