Class Attributes
Inheritance
System.Object
ToSic.Razor.Markup.RawHtmlString
Attributes
Implements
System.Web.IHtmlString
Namespace: ToSic.Razor.Markup
Assembly: ToSic.Razor.dll
Syntax
public class Attributes : RawHtmlString, IRawHtmlString, IHtmlString
Constructors
| Improve this Doc View SourceAttributes(AttributeOptions, IEnumerable<Attribute>, IEnumerable<Attribute>)
Declaration
public Attributes(AttributeOptions options = null, IEnumerable<Attribute> list = null, IEnumerable<Attribute> additions = null)
Parameters
Type | Name | Description |
---|---|---|
AttributeOptions | options | |
System.Collections.Generic.IEnumerable<Attribute> | list | |
System.Collections.Generic.IEnumerable<Attribute> | additions |
Attributes(Attributes, AttributeOptions)
Declaration
public Attributes(Attributes original, AttributeOptions options = null)
Parameters
Type | Name | Description |
---|---|---|
Attributes | original | |
AttributeOptions | options |
Fields
| Improve this Doc View SourceOptions
Serialization options to use for all attributes, unless an attribute has own options
Declaration
public AttributeOptions Options
Field Value
Type | Description |
---|---|
AttributeOptions |
Properties
| Improve this Doc View SourceList
Declaration
public IReadOnlyCollection<Attribute> List { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyCollection<Attribute> |
Methods
| Improve this Doc View SourceAddUrl(String, Object, String)
Declaration
public Attributes AddUrl(string name, object value = null, string appendSeparator = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.Object | value | |
System.String | appendSeparator |
Returns
Type | Description |
---|---|
Attributes |
ToString()
Gets the HTML safe string
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
ToSic.Razor.Markup.RawHtmlString.ToString()
Implements
System.Web.IHtmlString