C# 클래스 GravatarHtmlHelper, Gravatar-HtmlHelper

Globally Recognised Avatar - http://gravatar.com
This implementation by Andrew Freemantle - http://www.fatlemon.co.uk/

Source, Wiki and Issues: https://github.com/AndrewFreemantle/Gravatar-HtmlHelper

파일 보기 프로젝트 열기: AndrewFreemantle/Gravatar-HtmlHelper 1 사용 예제들

공개 메소드들

메소드 설명
GravatarImage ( this htmlHelper, string emailAddress, int size = 80, DefaultImage defaultImage = DefaultImage.Default, string defaultImageUrl = "", bool forceDefaultImage = false, Rating, rating = Rating.G, bool forceSecureRequest = false ) : IHtmlContent

Returns a Globally Recognised Avatar as an <img /> - http://gravatar.com

비공개 메소드들

메소드 설명
GetDescription ( this en ) : string

Returns the value of a DescriptionAttribute for a given Enum value

Source: http://blogs.msdn.com/b/abhinaba/archive/2005/10/21/483337.aspx

GetMd5Hash ( string input ) : string

Generates an MD5 hash of the given string

Source: http://msdn.microsoft.com/en-us/library/system.security.cryptography.md5.aspx

메소드 상세

GravatarImage() 공개 정적인 메소드

Returns a Globally Recognised Avatar as an <img /> - http://gravatar.com
public static GravatarImage ( this htmlHelper, string emailAddress, int size = 80, DefaultImage defaultImage = DefaultImage.Default, string defaultImageUrl = "", bool forceDefaultImage = false, Rating, rating = Rating.G, bool forceSecureRequest = false ) : IHtmlContent
htmlHelper this
emailAddress string Email Address for the Gravatar
size int Size in pixels (default: 80)
defaultImage DefaultImage Default image if user hasn't created a Gravatar
defaultImageUrl string URL to a custom default image (e.g: 'Url.Content("~/images/no-grvatar.png")' )
forceDefaultImage bool Prefer the default image over the users own Gravatar
rating Rating, Gravatar content rating (note that Gravatars are self-rated)
forceSecureRequest bool Always do secure (https) requests
리턴 IHtmlContent