SyntaxFactory.Label 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
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
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) 标记。