VariableDeclarationSyntax.Accept 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Accept(CSharpSyntaxVisitor) | |
Accept<TResult>(CSharpSyntaxVisitor<TResult>) |
Accept(CSharpSyntaxVisitor)
public:
override void Accept(Microsoft::CodeAnalysis::CSharp::CSharpSyntaxVisitor ^ visitor);
public override void Accept (Microsoft.CodeAnalysis.CSharp.CSharpSyntaxVisitor visitor);
override this.Accept : Microsoft.CodeAnalysis.CSharp.CSharpSyntaxVisitor -> unit
Public Overrides Sub Accept (visitor As CSharpSyntaxVisitor)
參數
- visitor
- CSharpSyntaxVisitor
適用於
Accept<TResult>(CSharpSyntaxVisitor<TResult>)
public:
generic <typename TResult>
override TResult Accept(Microsoft::CodeAnalysis::CSharp::CSharpSyntaxVisitor<TResult> ^ visitor);
public override TResult Accept<TResult> (Microsoft.CodeAnalysis.CSharp.CSharpSyntaxVisitor<TResult> visitor);
public override TResult? Accept<TResult> (Microsoft.CodeAnalysis.CSharp.CSharpSyntaxVisitor<TResult> visitor);
override this.Accept : Microsoft.CodeAnalysis.CSharp.CSharpSyntaxVisitor<'Result> -> 'Result
Public Overrides Function Accept(Of TResult) (visitor As CSharpSyntaxVisitor(Of TResult)) As TResult
類型參數
- TResult
參數
- visitor
- CSharpSyntaxVisitor<TResult>
傳回
TResult