Méthode ModelRelationshipInstance.GetProperty<T> (ModelPropertyClass)
Retrieves properties for this relationship instance.
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 ModelRelationshipInstance
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
Type of the property value.
Paramètres
- property
Type : Microsoft.SqlServer.Dac.Model.ModelPropertyClass
ModelPropertyClass property to retrieve.
Valeur de retour
Type : T
Property value.
Exceptions
Exception | Condition |
---|---|
DacModelException | If the supplied property is not supported on this instance. |
InvalidCastException | If the property type cannot be cast to T. |