Returns the property value.
命名空間: Microsoft.SqlServer.Dac.Model
組件: Microsoft.SqlServer.Dac.Extensions (在 Microsoft.SqlServer.Dac.Extensions.dll 中)
語法
'宣告
Public Function GetValue(Of T) ( _
instance As TSqlObject _
) As T
'用途
Dim instance As ModelPropertyClass
Dim instance As TSqlObject
Dim returnValue As T
returnValue = instance.GetValue(instance)
public T GetValue<T>(
TSqlObject instance
)
public:
generic<typename T>
T GetValue(
TSqlObject^ instance
)
member GetValue :
instance:TSqlObject -> 'T
JScript 不支援一般類型和方法。
型別參數
- T
Type of the property value.
參數
- instance
型別:Microsoft.SqlServer.Dac.Model.TSqlObject
TSqlObject instance to get the property value from.
傳回值
型別:T
Property value.
例外狀況
| 例外狀況 | 條件 |
|---|---|
| InvalidCastException | If the property value cannot be cast to T. |