SyntaxToken.GetAnnotations Method

Definition

Overloads

GetAnnotations(IEnumerable<String>)

Gets all the annotations of the specified annotation kind.

GetAnnotations(String)

Gets all the annotations of the specified annotation kind.

GetAnnotations(String[])

Gets all the annotations of the specified annotation kind.

GetAnnotations(IEnumerable<String>)

Gets all the annotations of the specified annotation kind.

public:
 System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::SyntaxAnnotation ^> ^ GetAnnotations(System::Collections::Generic::IEnumerable<System::String ^> ^ annotationKinds);
public System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxAnnotation> GetAnnotations (System.Collections.Generic.IEnumerable<string> annotationKinds);
member this.GetAnnotations : seq<string> -> seq<Microsoft.CodeAnalysis.SyntaxAnnotation>
Public Function GetAnnotations (annotationKinds As IEnumerable(Of String)) As IEnumerable(Of SyntaxAnnotation)

Parameters

annotationKinds
IEnumerable<String>

Returns

IEnumerable<SyntaxAnnotation>

Applies to

GetAnnotations(String)

Gets all the annotations of the specified annotation kind.

public:
 System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::SyntaxAnnotation ^> ^ GetAnnotations(System::String ^ annotationKind);
public System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxAnnotation> GetAnnotations (string annotationKind);
member this.GetAnnotations : string -> seq<Microsoft.CodeAnalysis.SyntaxAnnotation>
Public Function GetAnnotations (annotationKind As String) As IEnumerable(Of SyntaxAnnotation)

Parameters

annotationKind
String

Returns

IEnumerable<SyntaxAnnotation>

Applies to

GetAnnotations(String[])

Gets all the annotations of the specified annotation kind.

public:
 System::Collections::Generic::IEnumerable<Microsoft::CodeAnalysis::SyntaxAnnotation ^> ^ GetAnnotations(... cli::array <System::String ^> ^ annotationKinds);
public System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.SyntaxAnnotation> GetAnnotations (params string[] annotationKinds);
member this.GetAnnotations : string[] -> seq<Microsoft.CodeAnalysis.SyntaxAnnotation>
Public Function GetAnnotations (ParamArray annotationKinds As String()) As IEnumerable(Of SyntaxAnnotation)

Parameters

annotationKinds
String[]

Returns

IEnumerable<SyntaxAnnotation>

Applies to