SyntaxTree.GetLineVisibility(Int32, CancellationToken) 方法

定义

返回给定位置的线条的可见性。

public virtual Microsoft.CodeAnalysis.LineVisibility GetLineVisibility (int position, System.Threading.CancellationToken cancellationToken = default);
abstract member GetLineVisibility : int * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.LineVisibility
override this.GetLineVisibility : int * System.Threading.CancellationToken -> Microsoft.CodeAnalysis.LineVisibility
Public Overridable Function GetLineVisibility (position As Integer, Optional cancellationToken As CancellationToken = Nothing) As LineVisibility

参数

position
Int32

要检查的位置。

cancellationToken
CancellationToken

取消标记。

返回

适用于