SyntaxTree.TryGetText(SourceText) 方法

定义

获取语法树的文本(如果可用)。

public:
 abstract bool TryGetText([Runtime::InteropServices::Out] Microsoft::CodeAnalysis::Text::SourceText ^ % text);
public abstract bool TryGetText (out Microsoft.CodeAnalysis.Text.SourceText text);
public abstract bool TryGetText (out Microsoft.CodeAnalysis.Text.SourceText? text);
abstract member TryGetText : SourceText -> bool
Public MustOverride Function TryGetText (ByRef text As SourceText) As Boolean

参数

text
SourceText

返回

适用于