ReadOnlyTagHelperAttributeList.TryGetAttribute Metoda

Definice

Načte první TagHelperAttribute s odpovídajícími Name name.

public:
 bool TryGetAttribute(System::String ^ name, [Runtime::InteropServices::Out] Microsoft::AspNetCore::Razor::TagHelpers::TagHelperAttribute ^ % attribute);
public bool TryGetAttribute (string name, out Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute attribute);
member this.TryGetAttribute : string * TagHelperAttribute -> bool
Public Function TryGetAttribute (name As String, ByRef attribute As TagHelperAttribute) As Boolean

Parametry

name
String

Na Name to, aby TagHelperAttribute ses dostala.

attribute
TagHelperAttribute

Když tato metoda vrátí, první TagHelperAttribute s Name odpovídající name, pokud je nalezen; v opačném případě null.

Návraty

Boolean

True, pokud v kolekci existuje stejný Name shodTagHelperAttribute, jinak nepravda.

Poznámky

name nerozlišuje malá a velká písmena.

Platí pro