共用方式為


SymbolEditorExtensions.GetBaseOrInterfaceDeclarationReferenceAsync Method

Definition

Gets the reference to the declaration of the base or interface type as part of the symbol's declaration.

public static System.Threading.Tasks.Task<Microsoft.CodeAnalysis.SyntaxNode> GetBaseOrInterfaceDeclarationReferenceAsync (this Microsoft.CodeAnalysis.Editing.SymbolEditor editor, Microsoft.CodeAnalysis.ISymbol symbol, Microsoft.CodeAnalysis.ITypeSymbol baseOrInterfaceType, System.Threading.CancellationToken cancellationToken = default);
static member GetBaseOrInterfaceDeclarationReferenceAsync : Microsoft.CodeAnalysis.Editing.SymbolEditor * Microsoft.CodeAnalysis.ISymbol * Microsoft.CodeAnalysis.ITypeSymbol * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.SyntaxNode>
<Extension()>
Public Function GetBaseOrInterfaceDeclarationReferenceAsync (editor As SymbolEditor, symbol As ISymbol, baseOrInterfaceType As ITypeSymbol, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SyntaxNode)

Parameters

editor
SymbolEditor
symbol
ISymbol
baseOrInterfaceType
ITypeSymbol
cancellationToken
CancellationToken

Returns

Applies to