Partager via


Méthode TSqlObject.GetProperty<T> (ModelPropertyClass)

Returns the property value.

Espace de noms :  Microsoft.SqlServer.Dac.Model
Assembly :  Microsoft.SqlServer.Dac.Extensions (en Microsoft.SqlServer.Dac.Extensions.dll)

Syntaxe

'Déclaration
Public Function GetProperty(Of T) ( _
    property As ModelPropertyClass _
) As T
'Utilisation
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 ne prend pas en charge les types et les méthodes génériques.

Paramètres de type

  • T
    Property type.

Paramètres

Valeur de retour

Type : T
Property Value.

Exceptions

Exception Condition
DacModelException

If property does not exists on the object.

InvalidCastException

If the property type cannot be cast to T.

Voir aussi

Référence

TSqlObject Classe

Surcharge GetProperty

Espace de noms Microsoft.SqlServer.Dac.Model