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
- T
The type of the value returned by the IMetadataObjectVisitor<T> object.
Parameters
- visitor
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IMetadataObjectVisitor<T>
The IDatabaseObjectVisitor<T> object that performs the visit.
Return Value
Type: T
The value returned by the IMetadataObjectVisitor<T> object.
Implements
IMetadataObject.Accept<T>(IMetadataObjectVisitor<T>)
See Also
Reference
Microsoft.SqlServer.Management.SqlParser.MetadataProvider Namespace