共用方式為


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

傳回

適用於