コード例 #1
0
 /// <summary>
 /// In a specified input string, replaces all action link parameter
 /// with another action link parameter returned by a callback function.
 /// </summary>
 /// <param name="input">The string to search for a match.</param>
 /// <param name="callback">A custom method that examines each match and returns either the original matched
 /// action link parameter or a replacement action link parameter.</param>
 public string ReplaceLinks(string input, Action <ActionLink> callback) => ActionLinkHelper.ReplaceLinks(input, callback);
コード例 #2
0
 /// <summary>
 /// Parses the given string parameters and returns with a <see cref="ActionLink" /> object.
 /// </summary>
 /// <param name="link">The action link.</param>
 /// <returns>
 /// A <see cref="ActionLink" /> object.
 /// </returns>
 public ActionLink DecodeLink(string link) => ActionLinkHelper.DecodeLink(link);
コード例 #3
0
 /// <summary>
 /// Parses the given string parameters and returns with a <see cref="ActionLink" /> object.
 /// </summary>
 /// <param name="paramUri">The string that contains entity ID(s).</param>
 /// <param name="customUri">The user-defined URI for the action link.</param>
 /// <returns>
 /// A <see cref="ActionLink" /> object.
 /// </returns>
 public ActionLink UrlTokenDecode(string paramUri, string customUri = null) => ActionLinkHelper.UrlTokenDecode(paramUri, customUri);
コード例 #4
0
 /// <summary>
 /// Creates a new action link that can be shared on the Web.
 /// </summary>
 /// <param name="actionLink">An object that configures the action link will be created.</param>
 /// <param name="absolute">It will create an absolute URL if true.</param>
 /// <returns>
 /// The link.
 /// </returns>
 public string CreateLink(ActionLink actionLink, bool absolute) => ActionLinkHelper.CreateLink(actionLink, absolute);
コード例 #5
0
 /// <summary>
 /// Creates a new action link parameters that can be shared on the Web.
 /// </summary>
 /// <param name="actionLink">An object that configures the action link will be created.</param>
 /// <returns>
 /// The link.
 /// </returns>
 public string UrlTokenEncode(ActionLink actionLink) => ActionLinkHelper.UrlTokenEncode(actionLink);