ErrorStatementSyntax.WithErrorNumber(ExpressionSyntax) 方法

定义

返回一个副本,其中 ErrorNumber 属性已更改为指定值。 如果指定的值与当前值相同,则返回此实例。

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::ErrorStatementSyntax ^ WithErrorNumber(Microsoft::CodeAnalysis::VisualBasic::Syntax::ExpressionSyntax ^ errorNumber);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.ErrorStatementSyntax WithErrorNumber (Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax errorNumber);
member this.WithErrorNumber : Microsoft.CodeAnalysis.VisualBasic.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.ErrorStatementSyntax
Public Function WithErrorNumber (errorNumber As ExpressionSyntax) As ErrorStatementSyntax

参数

errorNumber
ExpressionSyntax

返回

适用于