C# Class Decision.Common.OpenGraph.ObjectTypes.Standard.OpenGraphArticle

This object represents an article on a website. It is the preferred type for blog posts and news stories. This object type is part of the Open Graph standard. See http://ogp.me/ See https://developers.facebook.com/docs/reference/opengraph/object-type/article/
Inheritance: OpenGraphMetadata
Afficher le fichier Open project: rabbal/Decision

Méthodes publiques

Méthode Description
OpenGraphArticle ( string title, OpenGraphImage image, string url = null ) : System

Initializes a new instance of the OpenGraphArticle class.

ToString ( StringBuilder stringBuilder ) : void

Appends a HTML-encoded string representing this instance to the stringBuilder containing the Open Graph meta tags.

Method Details

OpenGraphArticle() public méthode

Initializes a new instance of the OpenGraphArticle class.
public OpenGraphArticle ( string title, OpenGraphImage image, string url = null ) : System
title string The title of the object as it should appear in the graph.
image Decision.Common.OpenGraph.Media.OpenGraphImage The default image.
url string The canonical URL of the object, used as its ID in the graph.
Résultat System

ToString() public méthode

Appends a HTML-encoded string representing this instance to the stringBuilder containing the Open Graph meta tags.
public ToString ( StringBuilder stringBuilder ) : void
stringBuilder StringBuilder The string builder.
Résultat void