OnErrorGoToStatementSyntax.WithLabel(LabelSyntax) 方法

定义

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

public:
 Microsoft::CodeAnalysis::VisualBasic::Syntax::OnErrorGoToStatementSyntax ^ WithLabel(Microsoft::CodeAnalysis::VisualBasic::Syntax::LabelSyntax ^ label);
public Microsoft.CodeAnalysis.VisualBasic.Syntax.OnErrorGoToStatementSyntax WithLabel (Microsoft.CodeAnalysis.VisualBasic.Syntax.LabelSyntax label);
member this.WithLabel : Microsoft.CodeAnalysis.VisualBasic.Syntax.LabelSyntax -> Microsoft.CodeAnalysis.VisualBasic.Syntax.OnErrorGoToStatementSyntax
Public Function WithLabel (label As LabelSyntax) As OnErrorGoToStatementSyntax

参数

label
LabelSyntax

返回

适用于