共用方式為


PragmaWarningDirectiveTriviaSyntax.WithErrorCodes 方法

定義

public:
 Microsoft::CodeAnalysis::CSharp::Syntax::PragmaWarningDirectiveTriviaSyntax ^ WithErrorCodes(Microsoft::CodeAnalysis::SeparatedSyntaxList<Microsoft::CodeAnalysis::CSharp::Syntax::ExpressionSyntax ^> errorCodes);
public Microsoft.CodeAnalysis.CSharp.Syntax.PragmaWarningDirectiveTriviaSyntax WithErrorCodes (Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax> errorCodes);
member this.WithErrorCodes : Microsoft.CodeAnalysis.SeparatedSyntaxList<Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax> -> Microsoft.CodeAnalysis.CSharp.Syntax.PragmaWarningDirectiveTriviaSyntax
Public Function WithErrorCodes (errorCodes As SeparatedSyntaxList(Of ExpressionSyntax)) As PragmaWarningDirectiveTriviaSyntax

參數

傳回

適用於