Esempio n. 1
0
 /// <summary>
 /// Renders the Twitter header tags for <see cref="EntryContentBase" />
 /// </summary>
 /// <param name="htmlHelper">The HTML helper.</param>
 /// <param name="content">The content.</param>
 /// <param name="twitterUsername">The twitter username.</param>
 /// <returns>The <see cref="IHtmlString" />.</returns>
 /// <exception cref="T:System.Web.HttpException">The Web application is running under IIS 7 in Integrated mode.</exception>
 /// <exception cref="T:System.ArgumentException">The specified <see cref="UriPartial.Authority"/> is not valid.</exception>
 /// <exception cref="T:System.InvalidOperationException">The current <see cref="T:System.Uri" /> instance is not an absolute instance.</exception>
 /// <exception cref="T:System.MemberAccessException">The <see cref="T:System.Lazy`1" /> instance is initialized to use the default constructor of the type that is being lazily initialized, and permissions to access the constructor are missing.</exception>
 /// <exception cref="T:System.MissingMemberException">The <see cref="T:System.Lazy`1" /> instance is initialized to use the default constructor of the type that is being lazily initialized, and that type does not have a public, parameterless constructor.</exception>
 public static IHtmlString SummaryLargeImageTwitterCard(
     this HtmlHelper htmlHelper,
     EntryContentBase content,
     string twitterUsername)
 {
     return(htmlHelper.TwitterCard(content.ToSummaryLargeImageTwitterCard(twitterUsername: twitterUsername)));
 }