CSharpExtensions.Kind 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Kind(SyntaxTrivia)
從 RawKind 屬性傳SyntaxTriviaSyntaxKind回 。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::CodeAnalysis::CSharp::SyntaxKind Kind(Microsoft::CodeAnalysis::SyntaxTrivia trivia);
public static Microsoft.CodeAnalysis.CSharp.SyntaxKind Kind (this Microsoft.CodeAnalysis.SyntaxTrivia trivia);
static member Kind : Microsoft.CodeAnalysis.SyntaxTrivia -> Microsoft.CodeAnalysis.CSharp.SyntaxKind
<Extension()>
Public Function Kind (trivia As SyntaxTrivia) As SyntaxKind
參數
- trivia
- SyntaxTrivia
傳回
適用於
Kind(SyntaxNode)
從 RawKind 屬性傳SyntaxNodeSyntaxKind回 。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::CodeAnalysis::CSharp::SyntaxKind Kind(Microsoft::CodeAnalysis::SyntaxNode ^ node);
public static Microsoft.CodeAnalysis.CSharp.SyntaxKind Kind (this Microsoft.CodeAnalysis.SyntaxNode node);
static member Kind : Microsoft.CodeAnalysis.SyntaxNode -> Microsoft.CodeAnalysis.CSharp.SyntaxKind
<Extension()>
Public Function Kind (node As SyntaxNode) As SyntaxKind
參數
- node
- SyntaxNode
傳回
適用於
Kind(SyntaxNodeOrToken)
從 RawKind 屬性傳SyntaxNodeSyntaxKind回 。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::CodeAnalysis::CSharp::SyntaxKind Kind(Microsoft::CodeAnalysis::SyntaxNodeOrToken nodeOrToken);
public static Microsoft.CodeAnalysis.CSharp.SyntaxKind Kind (this Microsoft.CodeAnalysis.SyntaxNodeOrToken nodeOrToken);
static member Kind : Microsoft.CodeAnalysis.SyntaxNodeOrToken -> Microsoft.CodeAnalysis.CSharp.SyntaxKind
<Extension()>
Public Function Kind (nodeOrToken As SyntaxNodeOrToken) As SyntaxKind
參數
- nodeOrToken
- SyntaxNodeOrToken
傳回
適用於
Kind(SyntaxToken)
從 RawKind 屬性傳SyntaxTokenSyntaxKind回 。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::CodeAnalysis::CSharp::SyntaxKind Kind(Microsoft::CodeAnalysis::SyntaxToken token);
public static Microsoft.CodeAnalysis.CSharp.SyntaxKind Kind (this Microsoft.CodeAnalysis.SyntaxToken token);
static member Kind : Microsoft.CodeAnalysis.SyntaxToken -> Microsoft.CodeAnalysis.CSharp.SyntaxKind
<Extension()>
Public Function Kind (token As SyntaxToken) As SyntaxKind
參數
- token
- SyntaxToken