SyntaxFactory.Label 方法

定义

重载

Label(SyntaxKind, String)

GoTo、Resume 或 On Error 语句的标签。 标识符、行号或下一关键字 (keyword) 。

Label(SyntaxKind, SyntaxToken)

GoTo、Resume 或 On Error 语句的标签。 标识符、行号或下一关键字 (keyword) 。

Label(SyntaxKind, String)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

GoTo、Resume 或 On Error 语句的标签。 标识符、行号或下一关键字 (keyword) 。

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::LabelSyntax ^ Label(Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind, System::String ^ labelToken);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.LabelSyntax Label (Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind, string labelToken);
static member Label : Microsoft.CodeAnalysis.VisualBasic.SyntaxKind * string -> Microsoft.CodeAnalysis.VisualBasic.Syntax.LabelSyntax
Public Shared Function Label (kind As SyntaxKind, labelToken As String) As LabelSyntax

参数

kind
SyntaxKind

一个 SyntaxKind ,表示特定类型的 LabelSyntax。 IdentifierLabel、NumericLabel、NextLabel 之一。

labelToken
String

标签名称 (标识符) 、行号 (整数文本) 或下一个关键字 (keyword) 标记。

返回

适用于

Label(SyntaxKind, SyntaxToken)

Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb
Source:
Syntax.xml.Main.Generated.vb

GoTo、Resume 或 On Error 语句的标签。 标识符、行号或下一关键字 (keyword) 。

public:
 static Microsoft::CodeAnalysis::VisualBasic::Syntax::LabelSyntax ^ Label(Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind, Microsoft::CodeAnalysis::SyntaxToken labelToken);
public static Microsoft.CodeAnalysis.VisualBasic.Syntax.LabelSyntax Label (Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind, Microsoft.CodeAnalysis.SyntaxToken labelToken);
static member Label : Microsoft.CodeAnalysis.VisualBasic.SyntaxKind * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.VisualBasic.Syntax.LabelSyntax
Public Shared Function Label (kind As SyntaxKind, labelToken As SyntaxToken) As LabelSyntax

参数

kind
SyntaxKind

一个 SyntaxKind ,表示特定类型的 LabelSyntax。 IdentifierLabel、NumericLabel、NextLabel 之一。

labelToken
SyntaxToken

标签名称 (标识符) 、行号 (整数文本) 或下一个关键字 (keyword) 标记。

返回

适用于