TSqlObject.GetProperty<T> Método (ModelPropertyClass)
Returns the property value.
Espacio de nombres: Microsoft.SqlServer.Dac.Model
Ensamblado: Microsoft.SqlServer.Dac.Extensions (en Microsoft.SqlServer.Dac.Extensions.dll)
Sintaxis
'Declaración
Public Function GetProperty(Of T) ( _
property As ModelPropertyClass _
) As T
'Uso
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 no admite tipos y métodos genéricos.
Parámetros de tipo
- T
Property type.
Parámetros
- property
Tipo: Microsoft.SqlServer.Dac.Model.ModelPropertyClass
Property.
Valor devuelto
Tipo: T
Property Value.
Excepciones
Excepción | Condición |
---|---|
DacModelException | If property does not exists on the object. |
InvalidCastException | If the property type cannot be cast to T. |