共用方式為


CasePatternSwitchLabelSyntax.WithPattern(PatternSyntax) 方法

定義

public:
 Microsoft::CodeAnalysis::CSharp::Syntax::CasePatternSwitchLabelSyntax ^ WithPattern(Microsoft::CodeAnalysis::CSharp::Syntax::PatternSyntax ^ pattern);
public Microsoft.CodeAnalysis.CSharp.Syntax.CasePatternSwitchLabelSyntax WithPattern (Microsoft.CodeAnalysis.CSharp.Syntax.PatternSyntax pattern);
member this.WithPattern : Microsoft.CodeAnalysis.CSharp.Syntax.PatternSyntax -> Microsoft.CodeAnalysis.CSharp.Syntax.CasePatternSwitchLabelSyntax
Public Function WithPattern (pattern As PatternSyntax) As CasePatternSwitchLabelSyntax

參數

pattern
PatternSyntax

傳回

適用於