다음을 통해 공유


SyntaxTriviaList.Replace(SyntaxTrivia, SyntaxTrivia) 메서드

정의

지정된 요소가 새 SyntaxTriviaList 퀴즈로 대체된 새 요소를 만듭니다.

public:
 Microsoft::CodeAnalysis::SyntaxTriviaList Replace(Microsoft::CodeAnalysis::SyntaxTrivia triviaInList, Microsoft::CodeAnalysis::SyntaxTrivia newTrivia);
public Microsoft.CodeAnalysis.SyntaxTriviaList Replace (Microsoft.CodeAnalysis.SyntaxTrivia triviaInList, Microsoft.CodeAnalysis.SyntaxTrivia newTrivia);
member this.Replace : Microsoft.CodeAnalysis.SyntaxTrivia * Microsoft.CodeAnalysis.SyntaxTrivia -> Microsoft.CodeAnalysis.SyntaxTriviaList
Public Function Replace (triviaInList As SyntaxTrivia, newTrivia As SyntaxTrivia) As SyntaxTriviaList

매개 변수

triviaInList
SyntaxTrivia

바꿀 퀴즈 요소입니다.

newTrivia
SyntaxTrivia

요소를 바꿀 퀴즈입니다.

반환

적용 대상