TSqlObject.GetMetadata<T>-Methode (ModelMetadataClass)
Returns the metadata property value.
Namespace: Microsoft.SqlServer.Dac.Model
Assembly: Microsoft.SqlServer.Dac.Extensions (in Microsoft.SqlServer.Dac.Extensions.dll)
Syntax
'Declaration
Public Function GetMetadata(Of T) ( _
metadata As ModelMetadataClass _
) As T
'Usage
Dim instance As TSqlObject
Dim metadata As ModelMetadataClass
Dim returnValue As T
returnValue = instance.GetMetadata(metadata)
public T GetMetadata<T>(
ModelMetadataClass metadata
)
public:
generic<typename T>
T GetMetadata(
ModelMetadataClass^ metadata
)
member GetMetadata :
metadata:ModelMetadataClass -> 'T
JScript bietet keine Unterstützung für die Verwendung generischer Typen und Methoden.
Typparameter
- T
Metadata property type.
Parameter
- metadata
Typ: Microsoft.SqlServer.Dac.Model.ModelMetadataClass
Metadata property name.
Rückgabewert
Typ: T
Metadata property value.
Ausnahmen
Ausnahme | Bedingung |
---|---|
DacModelException | If metadata does not exists on the object. |
InvalidCastException | If the metadata property type cannot be cast to T. |