Class ScriptJsonLd
Special tag for generating JsonLd markup
Inheritance
System.Object
ToSic.Razor.Markup.ToHtmlHybridBase
ScriptJsonLd
Implements
Microsoft.AspNetCore.Html.IHtmlContent
System.Collections.Generic.IEnumerable<ITag>
System.Collections.IEnumerable
Inherited Members
Namespace: ToSic.Razor.Html5
Assembly: ToSic.Razor.dll
Syntax
public class ScriptJsonLd : Script, IHtmlContent, ITag, IEnumerable<ITag>, IEnumerable
Constructors
| Improve this Doc View SourceScriptJsonLd(Object)
Create a JsonLd Script tag and automatically json-serialize the object inside it
Declaration
public ScriptJsonLd(object content)
Parameters
Type | Name | Description |
---|---|---|
System.Object | content | an object which will be json serialized |
ScriptJsonLd(String)
Create a JsonLd Script-TagBase
Declaration
public ScriptJsonLd(string content)
Parameters
Type | Name | Description |
---|---|---|
System.String | content | the contents in the tag |
Implements
Microsoft.AspNetCore.Html.IHtmlContent
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable