C# Class Decision.Common.OpenGraph.HtmlHelperExtensions

Creates Open Graph meta tags. OpenGraphMetadata for more information.
Show file Open project: rabbal/Decision

Public Methods

Method Description
OpenGraph ( this htmlHelper, OpenGraphMetadata openGraphMetadata ) : IHtmlString

Creates a string containing the Open Graph meta tags (Also used by Facebook). OpenGraphMetadata for more information.

OpenGraphNamespace ( this htmlHelper, OpenGraphMetadata openGraphMetadata ) : IHtmlString

Creates a string representing the Open Graph, Facebook and object namespaces. The namespaces are added to the HTML head element.

Method Details

OpenGraph() public static method

Creates a string containing the Open Graph meta tags (Also used by Facebook). OpenGraphMetadata for more information.
public static OpenGraph ( this htmlHelper, OpenGraphMetadata openGraphMetadata ) : IHtmlString
htmlHelper this The HTML helper.
openGraphMetadata Decision.Common.OpenGraph.ObjectTypes.OpenGraphMetadata The open graph metadata.
return IHtmlString

OpenGraphNamespace() public static method

Creates a string representing the Open Graph, Facebook and object namespaces. The namespaces are added to the HTML head element.
public static OpenGraphNamespace ( this htmlHelper, OpenGraphMetadata openGraphMetadata ) : IHtmlString
htmlHelper this The HTML helper.
openGraphMetadata Decision.Common.OpenGraph.ObjectTypes.OpenGraphMetadata The open graph metadata.
return IHtmlString