ModelPropertyClass.GetValue<T> Method

Returns the property value.

Namespace:  Microsoft.SqlServer.Dac.Model
Assembly:  Microsoft.SqlServer.Dac.Extensions (in Microsoft.SqlServer.Dac.Extensions.dll)

public T GetValue<T>(
	TSqlObject instance
)

Type Parameters

T

Type of the property value.

Parameters

instance
Type: Microsoft.SqlServer.Dac.Model.TSqlObject
TSqlObject instance to get the property value from.

Return Value

Type: T
Property value.

ExceptionCondition
InvalidCastException

If the property value cannot be cast to T.

Community Additions

Show: