Compartilhar via


SyntaxTrivia.CopyAnnotationsTo(SyntaxTrivia) Método

Definição

Copia todas as SyntaxAnnotations, se houver, dessa instância de SyntaxTrivia e as anexa a uma nova instância com base em 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

Parâmetros

trivia
SyntaxTrivia

Retornos

Aplica-se a