Читати англійською

Поділитися через


SemanticModel.GetImportScopes(Int32, CancellationToken) Method

Definition

Given a position in the SyntaxTree for this SemanticModel returns the IImportScopes at that point. Scopes are ordered from closest to the passed in position to the furthest. See IImportScope for a deeper description of what information is available for each scope.

C#
public System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.IImportScope> GetImportScopes(int position, System.Threading.CancellationToken cancellationToken = default);

Parameters

position
Int32
cancellationToken
CancellationToken

Returns

Applies to

Продукт Версії
Roslyn 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 4.12.2, 4.13.0