Share via


TSqlObject.GetMetadata<T> Method (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 does not support generic types and methods.

Type Parameters

  • T
    Metadata property type.

Parameters

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.

See Also

Reference

TSqlObject Class

GetMetadata Overload

Microsoft.SqlServer.Dac.Model Namespace