VisualBasicExtensions.IndexOf 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
IndexOf(SyntaxTokenList, SyntaxKind) |
傳回權杖清單中指定類型之第一個標記的索引。 |
IndexOf(SyntaxTriviaList, SyntaxKind) |
傳回 Trivia 清單中指定種類之第一個 Trivia 的索引。 |
IndexOf<TNode>(SeparatedSyntaxList<TNode>, SyntaxKind) |
傳回節點清單中指定類型之第一個節點的索引。 |
IndexOf<TNode>(SyntaxList<TNode>, SyntaxKind) |
傳回節點清單中指定類型之第一個節點的索引。 |
IndexOf(SyntaxTokenList, SyntaxKind)
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
傳回權杖清單中指定類型之第一個標記的索引。
public:
[System::Runtime::CompilerServices::Extension]
static int IndexOf(Microsoft::CodeAnalysis::SyntaxTokenList list, Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind);
public static int IndexOf (this Microsoft.CodeAnalysis.SyntaxTokenList list, Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind);
static member IndexOf : Microsoft.CodeAnalysis.SyntaxTokenList * Microsoft.CodeAnalysis.VisualBasic.SyntaxKind -> int
<Extension()>
Public Function IndexOf (list As SyntaxTokenList, kind As SyntaxKind) As Integer
參數
- list
- SyntaxTokenList
權杖清單。
- kind
- SyntaxKind
要尋找的 SyntaxKind。
傳回
如果清單包含符合 kind
的標記,則傳回非負索引,否則傳回 -1。
適用於
IndexOf(SyntaxTriviaList, SyntaxKind)
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
傳回 Trivia 清單中指定種類之第一個 Trivia 的索引。
public:
[System::Runtime::CompilerServices::Extension]
static int IndexOf(Microsoft::CodeAnalysis::SyntaxTriviaList list, Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind);
public static int IndexOf (this Microsoft.CodeAnalysis.SyntaxTriviaList list, Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind);
static member IndexOf : Microsoft.CodeAnalysis.SyntaxTriviaList * Microsoft.CodeAnalysis.VisualBasic.SyntaxKind -> int
<Extension()>
Public Function IndexOf (list As SyntaxTriviaList, kind As SyntaxKind) As Integer
參數
- list
- SyntaxTriviaList
Trivia 清單。
- kind
- SyntaxKind
要尋找的 SyntaxKind。
傳回
如果清單包含符合 kind
的 Trivia,則傳回非負索引,否則傳回 -1。
適用於
IndexOf<TNode>(SeparatedSyntaxList<TNode>, SyntaxKind)
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
傳回節點清單中指定類型之第一個節點的索引。
public:
generic <typename TNode>
where TNode : Microsoft::CodeAnalysis::SyntaxNode[System::Runtime::CompilerServices::Extension]
static int IndexOf(Microsoft::CodeAnalysis::SeparatedSyntaxList<TNode> list, Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind);
public static int IndexOf<TNode> (this Microsoft.CodeAnalysis.SeparatedSyntaxList<TNode> list, Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
static member IndexOf : Microsoft.CodeAnalysis.SeparatedSyntaxList<'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> * Microsoft.CodeAnalysis.VisualBasic.SyntaxKind -> int (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)
<Extension()>
Public Function IndexOf(Of TNode As SyntaxNode) (list As SeparatedSyntaxList(Of TNode), kind As SyntaxKind) As Integer
類型參數
- TNode
參數
節點清單。
- kind
- SyntaxKind
要尋找的 SyntaxKind。
傳回
如果清單包含符合 kind
的節點,則傳回非負索引,否則傳回 -1。
適用於
IndexOf<TNode>(SyntaxList<TNode>, SyntaxKind)
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
- Source:
- VisualBasicExtensions.vb
傳回節點清單中指定類型之第一個節點的索引。
public:
generic <typename TNode>
where TNode : Microsoft::CodeAnalysis::SyntaxNode[System::Runtime::CompilerServices::Extension]
static int IndexOf(Microsoft::CodeAnalysis::SyntaxList<TNode> list, Microsoft::CodeAnalysis::VisualBasic::SyntaxKind kind);
public static int IndexOf<TNode> (this Microsoft.CodeAnalysis.SyntaxList<TNode> list, Microsoft.CodeAnalysis.VisualBasic.SyntaxKind kind) where TNode : Microsoft.CodeAnalysis.SyntaxNode;
static member IndexOf : Microsoft.CodeAnalysis.SyntaxList<'Node (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)> * Microsoft.CodeAnalysis.VisualBasic.SyntaxKind -> int (requires 'Node :> Microsoft.CodeAnalysis.SyntaxNode)
<Extension()>
Public Function IndexOf(Of TNode As SyntaxNode) (list As SyntaxList(Of TNode), kind As SyntaxKind) As Integer
類型參數
- TNode
參數
- list
- SyntaxList<TNode>
節點清單。
- kind
- SyntaxKind
要尋找的 SyntaxKind。
傳回
如果清單包含符合 kind
的節點,則傳回非負索引,否則傳回 -1。