SyntaxTriviaList.ReplaceRange 方法

定义

SyntaxTriviaList使用替换为新琐事的指定元素创建新元素。

public:
 Microsoft::CodeAnalysis::SyntaxTriviaList ReplaceRange(Microsoft::CodeAnalysis::SyntaxTrivia triviaInList, System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::SyntaxTrivia> ^ newTrivia);
public Microsoft.CodeAnalysis.SyntaxTriviaList ReplaceRange (Microsoft.CodeAnalysis.SyntaxTrivia triviaInList, System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxTrivia> newTrivia);
member this.ReplaceRange : Microsoft.CodeAnalysis.SyntaxTrivia * seq<Microsoft.CodeAnalysis.SyntaxTrivia> -> Microsoft.CodeAnalysis.SyntaxTriviaList
Public Function ReplaceRange (triviaInList As SyntaxTrivia, newTrivia As IEnumerable(Of SyntaxTrivia)) As SyntaxTriviaList

参数

triviaInList
SyntaxTrivia

要替换的琐碎元素。

newTrivia
IEnumerable<SyntaxTrivia>

将元素替换为的琐事。

返回

适用于