Share via


MetadataObjectBase.Accept<T> Method

Accepts a visit from the specified IMetadataObjectVisitor<T> object.

Namespace:  Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

Syntax

'Declaration
Public MustOverride Function Accept(Of T) ( _
    visitor As IMetadataObjectVisitor(Of T) _
) As T
'Usage
Dim instance As MetadataObjectBase 
Dim visitor As IMetadataObjectVisitor(Of T)
Dim returnValue As T

returnValue = instance.Accept(visitor)
public abstract T Accept<T>(
    IMetadataObjectVisitor<T> visitor
)
public:
generic<typename T>
virtual T Accept(
    IMetadataObjectVisitor<T>^ visitor
) abstract
abstract Accept : 
        visitor:IMetadataObjectVisitor<'T> -> 'T 
JScript does not support generic types and methods.

Type Parameters

Parameters

Return Value

Type: T
The value returned by the IMetadataObjectVisitor<T> object.

Implements

IMetadataObject.Accept<T>(IMetadataObjectVisitor<T>)

See Also

Reference

MetadataObjectBase Class

Microsoft.SqlServer.Management.SqlParser.MetadataProvider Namespace