ReadOnlyTagHelperAttributeList.TryGetAttributes Method

Definition

Retrieves TagHelperAttributes in the collection with Name matching name.

public:
 bool TryGetAttributes(System::String ^ name, [Runtime::InteropServices::Out] System::Collections::Generic::IReadOnlyList<Microsoft::AspNetCore::Razor::TagHelpers::TagHelperAttribute ^> ^ % attributes);
public bool TryGetAttributes (string name, out System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute> attributes);
member this.TryGetAttributes : string * IReadOnlyList -> bool
Public Function TryGetAttributes (name As String, ByRef attributes As IReadOnlyList(Of TagHelperAttribute)) As Boolean

Parameters

name
String

The Name of the TagHelperAttributes to get.

attributes
IReadOnlyList<TagHelperAttribute>

When this method returns, the TagHelperAttributes with Name matching name.

Returns

true if at least one TagHelperAttribute with the same Name exists in the collection; otherwise, false.

Remarks

name is compared case-insensitively.

Applies to