C# Класс Westwind.Web.Services.ShareButtons

Class that holds a few static string definitions for embedding Share on Google+ and Twitter
Показать файл Открыть проект

Открытые методы

Метод Описание
GooglePlusPlusOneButton ( string url = null, string buttonSize = "medium", int width = -1 ) : string

Places a Google+ +1 and Share button in the page

ShareOnFacebook ( string url ) : string
ShareOnFacebookFull ( string url ) : string
ShareOnTwitter ( string text, string twitterShareAccount = null, string url = null, string hashTag = null ) : string

Inserts a Tweet button to share tweet on Twitter with an image link

Описание методов

GooglePlusPlusOneButton() публичный статический Метод

Places a Google+ +1 and Share button in the page
public static GooglePlusPlusOneButton ( string url = null, string buttonSize = "medium", int width = -1 ) : string
url string The Url to share. If not provided the current page is used
buttonSize string small,medium,standard,tall
width int
Результат string

ShareOnFacebook() публичный статический Метод

public static ShareOnFacebook ( string url ) : string
url string
Результат string

ShareOnFacebookFull() публичный статический Метод

public static ShareOnFacebookFull ( string url ) : string
url string
Результат string

ShareOnTwitter() публичный статический Метод

Inserts a Tweet button to share tweet on Twitter with an image link
public static ShareOnTwitter ( string text, string twitterShareAccount = null, string url = null, string hashTag = null ) : string
text string The text to present
twitterShareAccount string
url string
hashTag string
Результат string