Freigeben über


TSqlObject.GetProperty<T>-Methode (ModelPropertyClass)

Returns the property value.

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

Syntax

'Declaration
Public Function GetProperty(Of T) ( _
    property As ModelPropertyClass _
) As T
'Usage
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 bietet keine Unterstützung für die Verwendung generischer Typen und Methoden.

Typparameter

  • T
    Property type.

Parameter

Rückgabewert

Typ: T
Property Value.

Ausnahmen

Ausnahme Bedingung
DacModelException

If property does not exists on the object.

InvalidCastException

If the property type cannot be cast to T.

Siehe auch

Verweis

TSqlObject Klasse

GetProperty-Überladung

Microsoft.SqlServer.Dac.Model-Namespace