public SiteMarkerDrop(IPortalLiquidContext portalLiquidContext, ISiteMarkerTarget target) : base(portalLiquidContext, target.Entity) { if (target == null) { throw new ArgumentNullException("target"); } Target = target; }
/// <summary> /// Returns a URL for the target of a given Site Marker (adx_sitemarker). /// </summary> /// <param name="html">Extension method target, provides support for HTML rendering and access to view context/data.</param> /// <param name="target">The <see cref="ISiteMarkerTarget"/> whose URL will be returned.</param> /// <param name="queryStringParameters">Query string parameter values that will be appended to the URL.</param> /// <returns> /// Returns a URL for a <paramref name="target"/>. Returns null if <paramref name="target"/> is null. /// is not found. /// </returns> public static string SiteMarkerUrl(this HtmlHelper html, ISiteMarkerTarget target, NameValueCollection queryStringParameters) { return(html.EntityUrl(target, queryStringParameters)); }
/// <summary> /// Returns a URL for the target of a given Site Marker (adx_sitemarker). /// </summary> /// <param name="html">Extension method target, provides support for HTML rendering and access to view context/data.</param> /// <param name="target">The <see cref="ISiteMarkerTarget"/> whose URL will be returned.</param> /// <param name="queryStringParameters">Query string parameter values that will be appended to the URL.</param> /// <returns> /// Returns a URL for a <paramref name="target"/>. Returns null if <paramref name="target"/> is null. /// is not found. /// </returns> public static string SiteMarkerUrl(this HtmlHelper html, ISiteMarkerTarget target, object queryStringParameters) { return(SiteMarkerUrl(html, target, PortalExtensions.AnonymousObjectToQueryStringParameters(queryStringParameters))); }
/// <summary> /// Returns a URL for the target of a given Site Marker (adx_sitemarker). /// </summary> /// <param name="html">Extension method target, provides support for HTML rendering and access to view context/data.</param> /// <param name="target">The <see cref="ISiteMarkerTarget"/> whose URL will be returned.</param> /// <returns> /// Returns a URL for a <paramref name="target"/>. Returns null if <paramref name="target"/> is null. /// is not found. /// </returns> public static string SiteMarkerUrl(this HtmlHelper html, ISiteMarkerTarget target) { return(SiteMarkerUrl(html, target, new {})); }