C# 클래스 Decision.Common.OpenGraph.ObjectTypes.OpenGraphMetadata

The Open Graph protocol enables any web page to become a rich object in a social graph. For instance, this is used on Facebook to allow any web page to have the same functionality as any other object on Facebook. See http://ogp.me for the official Open Graph specification documentation. See https://developers.facebook.com/docs/sharing/opengraph for Facebook Open Graph documentation. See https://www.facebook.com/login.php?next=https%3A%2F%2Fdevelopers.facebook.com%2Ftools%2Fdebug%2F for the Open Graph debugging tool to test and verify your Open Graph implementation.
상속: IHtmlString
파일 보기 프로젝트 열기: rabbal/Decision 1 사용 예제들

공개 메소드들

메소드 설명
OpenGraphMetadata ( string title, OpenGraphImage image, string url = null ) : System

Initializes a new instance of the OpenGraphMetadata class.

ToHtmlString ( ) : string

Returns an HTML-encoded string containing the Open Graph meta tags.

ToString ( ) : string

Returns a HTML-encoded System.String that represents this instance containing the Open Graph meta tags.

ToString ( StringBuilder stringBuilder ) : void

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

메소드 상세

OpenGraphMetadata() 공개 메소드

Initializes a new instance of the OpenGraphMetadata class.
title or image is null.
public OpenGraphMetadata ( 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.
리턴 System

ToHtmlString() 공개 메소드

Returns an HTML-encoded string containing the Open Graph meta tags.
public ToHtmlString ( ) : string
리턴 string

ToString() 공개 메소드

Returns a HTML-encoded System.String that represents this instance containing the Open Graph meta tags.
public ToString ( ) : string
리턴 string

ToString() 공개 메소드

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.
리턴 void