次の方法で共有


ErrorStatementSyntax.WithErrorNumber(ExpressionSyntax) Method

Definition

Returns a copy of this with the ErrorNumber property changed to the specified value. Returns this instance if the specified value is the same as the current value.

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

Parameters

errorNumber
ExpressionSyntax

Returns

Applies to