共用方式為


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

傳回

適用於