Share via


TagHelperAttributeList.Add Method

Definition

Overloads

Add(TagHelperAttribute)
Add(String, Object)

Adds a TagHelperAttribute to the end of the collection with the specified name and value.

Add(TagHelperAttribute)

Source:
TagHelperAttributeList.cs
Source:
TagHelperAttributeList.cs

Adds an item to the ICollection<T>.

public:
 virtual void Add(Microsoft::AspNetCore::Razor::TagHelpers::TagHelperAttribute ^ attribute);
public void Add (Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute attribute);
abstract member Add : Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute -> unit
override this.Add : Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute -> unit
Public Sub Add (attribute As TagHelperAttribute)

Parameters

attribute
TagHelperAttribute

Implements

Applies to

Add(String, Object)

Source:
TagHelperAttributeList.cs
Source:
TagHelperAttributeList.cs

Adds a TagHelperAttribute to the end of the collection with the specified name and value.

public:
 void Add(System::String ^ name, System::Object ^ value);
public void Add (string name, object value);
member this.Add : string * obj -> unit
Public Sub Add (name As String, value As Object)

Parameters

name
String

The Name of the attribute to add.

value
Object

The Value of the attribute to add.

Applies to