Share via


CollationInfo.IMetadataObject.Accept Method

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

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

Syntax

'Declaration
Private Function Accept(Of T) ( _
    visitor As IMetadataObjectVisitor(Of T) _
) As T Implements IMetadataObject.Accept
'Usage
Dim instance As CollationInfo
Dim visitor As IMetadataObjectVisitor(Of T)
Dim returnValue As T

returnValue = CType(instance, IMetadataObject).Accept(visitor)
T IMetadataObject.Accept<T>(
    IMetadataObjectVisitor<T> visitor
)
private:
generic<typename T>
virtual T Accept(
    IMetadataObjectVisitor<T>^ visitor
) sealed = IMetadataObject::Accept
private abstract Accept : 
        visitor:IMetadataObjectVisitor<'T> -> 'T 
private override Accept : 
        visitor:IMetadataObjectVisitor<'T> -> 'T 
JScript does not support generic types and methods.

Type Parameters

  • T
    The type of the value returned by the visitor.

Parameters

Return Value

Type: T
The value returned by the visitor.

Implements

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