Condividi tramite


Metodo TSqlObject.GetProperty<T> (ModelPropertyClass)

Returns the property value.

Spazio dei nomi  Microsoft.SqlServer.Dac.Model
Assembly:  Microsoft.SqlServer.Dac.Extensions (in Microsoft.SqlServer.Dac.Extensions.dll)

Sintassi

'Dichiarazione
Public Function GetProperty(Of T) ( _
    property As ModelPropertyClass _
) As T
'Utilizzo
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 non supporta i metodi e i tipi generici.

Parametri di tipo

  • T
    Property type.

Parametri

Valore restituito

Tipo: T
Property Value.

Eccezioni

Eccezione Condizione
DacModelException

If property does not exists on the object.

InvalidCastException

If the property type cannot be cast to T.

Vedere anche

Riferimento

TSqlObject Classe

Overload GetProperty

Spazio dei nomi Microsoft.SqlServer.Dac.Model