C# Class Westwind.Web.Services.ShareButtons

Class that holds a few static string definitions for embedding Share on Google+ and Twitter
Afficher le fichier Open project: RickStrahl/WestwindToolkit

Méthodes publiques

Méthode Description
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

Method Details

GooglePlusPlusOneButton() public static méthode

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
Résultat string

ShareOnFacebook() public static méthode

public static ShareOnFacebook ( string url ) : string
url string
Résultat string

ShareOnFacebookFull() public static méthode

public static ShareOnFacebookFull ( string url ) : string
url string
Résultat string

ShareOnTwitter() public static méthode

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
Résultat string