ViewComponentTagHelperDescriptorConventions.IsViewComponentDescriptor Method

Definition

Indicates whether a TagHelperDescriptor represents a view component.

public:
 static bool IsViewComponentDescriptor(Microsoft::AspNetCore::Razor::Compilation::TagHelpers::TagHelperDescriptor ^ descriptor);
public static bool IsViewComponentDescriptor (Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor descriptor);
static member IsViewComponentDescriptor : Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor -> bool
Public Shared Function IsViewComponentDescriptor (descriptor As TagHelperDescriptor) As Boolean

Parameters

descriptor
TagHelperDescriptor

The TagHelperDescriptor to check.

Returns

Boolean

Whether a TagHelperDescriptor represents a view component.

Applies to