SyntaxTrivia.CopyAnnotationsTo(SyntaxTrivia) 方法

定义

从此 SyntaxTrivia 实例复制所有 SyntaxAnnotations(如果有)并将其附加到基于 trivia的新实例。

public:
 Microsoft::CodeAnalysis::SyntaxTrivia CopyAnnotationsTo(Microsoft::CodeAnalysis::SyntaxTrivia trivia);
public Microsoft.CodeAnalysis.SyntaxTrivia CopyAnnotationsTo (Microsoft.CodeAnalysis.SyntaxTrivia trivia);
member this.CopyAnnotationsTo : Microsoft.CodeAnalysis.SyntaxTrivia -> Microsoft.CodeAnalysis.SyntaxTrivia
Public Function CopyAnnotationsTo (trivia As SyntaxTrivia) As SyntaxTrivia

参数

trivia
SyntaxTrivia

返回

适用于