共用方式為


SyntaxFactory.CaseSwitchLabel Method

Definition

Overloads

CaseSwitchLabel(ExpressionSyntax)

Creates a new CaseSwitchLabelSyntax instance.

CaseSwitchLabel(ExpressionSyntax, SyntaxToken)

Creates a new CaseSwitchLabelSyntax instance.

CaseSwitchLabel(SyntaxToken, ExpressionSyntax, SyntaxToken)

Creates a new CaseSwitchLabelSyntax instance.

CaseSwitchLabel(ExpressionSyntax)

Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs
Source:
SyntaxFactory.cs

Creates a new CaseSwitchLabelSyntax instance.

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::CaseSwitchLabelSyntax ^ CaseSwitchLabel(Microsoft::CodeAnalysis::CSharp::Syntax::ExpressionSyntax ^ value);
public static Microsoft.CodeAnalysis.CSharp.Syntax.CaseSwitchLabelSyntax CaseSwitchLabel (Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax value);
static member CaseSwitchLabel : Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.CaseSwitchLabelSyntax
Public Shared Function CaseSwitchLabel (value As ExpressionSyntax) As CaseSwitchLabelSyntax

Parameters

Returns

Applies to

CaseSwitchLabel(ExpressionSyntax, SyntaxToken)

Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs

Creates a new CaseSwitchLabelSyntax instance.

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::CaseSwitchLabelSyntax ^ CaseSwitchLabel(Microsoft::CodeAnalysis::CSharp::Syntax::ExpressionSyntax ^ value, Microsoft::CodeAnalysis::SyntaxToken colonToken);
public static Microsoft.CodeAnalysis.CSharp.Syntax.CaseSwitchLabelSyntax CaseSwitchLabel (Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax value, Microsoft.CodeAnalysis.SyntaxToken colonToken);
static member CaseSwitchLabel : Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.CaseSwitchLabelSyntax
Public Shared Function CaseSwitchLabel (value As ExpressionSyntax, colonToken As SyntaxToken) As CaseSwitchLabelSyntax

Parameters

colonToken
SyntaxToken

Returns

Applies to

CaseSwitchLabel(SyntaxToken, ExpressionSyntax, SyntaxToken)

Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs
Source:
Syntax.xml.Main.Generated.cs

Creates a new CaseSwitchLabelSyntax instance.

public:
 static Microsoft::CodeAnalysis::CSharp::Syntax::CaseSwitchLabelSyntax ^ CaseSwitchLabel(Microsoft::CodeAnalysis::SyntaxToken keyword, Microsoft::CodeAnalysis::CSharp::Syntax::ExpressionSyntax ^ value, Microsoft::CodeAnalysis::SyntaxToken colonToken);
public static Microsoft.CodeAnalysis.CSharp.Syntax.CaseSwitchLabelSyntax CaseSwitchLabel (Microsoft.CodeAnalysis.SyntaxToken keyword, Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax value, Microsoft.CodeAnalysis.SyntaxToken colonToken);
static member CaseSwitchLabel : Microsoft.CodeAnalysis.SyntaxToken * Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax * Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.Syntax.CaseSwitchLabelSyntax
Public Shared Function CaseSwitchLabel (keyword As SyntaxToken, value As ExpressionSyntax, colonToken As SyntaxToken) As CaseSwitchLabelSyntax

Parameters

keyword
SyntaxToken
colonToken
SyntaxToken

Returns

Applies to