Partager via


CodeElementKind.IsOfKind(CodeElementKind) Method

Definition

Determines if this code element kind is of the same kind as the other code element kind, taking in consideration implicit hierarchy - e.g. File, Module, Package or Namespace are all considered to be of kind Container.

public bool IsOfKind (Microsoft.VisualStudio.Extensibility.Editor.CodeElementKind other);
member this.IsOfKind : Microsoft.VisualStudio.Extensibility.Editor.CodeElementKind -> bool
Public Function IsOfKind (other As CodeElementKind) As Boolean

Parameters

other
CodeElementKind

The other code element kind to compare to.

Returns

true if this code element kind is of the same kind as the other code element kind; otherwise, false.

Applies to