Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
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 does not support generic types and methods.
Type Parameters
- T
Metadata property type.
Parameters
- metadata
Type: Microsoft.SqlServer.Dac.Model.ModelMetadataClass
Metadata property name.
Return Value
Type: T
Metadata property value.
Exceptions
| Exception | Condition |
|---|---|
| DacModelException | If metadata does not exists on the object. |
| InvalidCastException | If the metadata property type cannot be cast to T. |