System.Web.HttpUtility.UrlPathEncode C# (CSharp) Method

UrlPathEncode() public static method

public static UrlPathEncode ( string str ) : string
str string
return string
        public static string UrlPathEncode(string str)
        {
            throw null;
        }

Usage Example

Example #1
0
 private static StatsPackage GetStatsPackage(DataServicePackage package)
 {
     return(new StatsPackage {
         Id = package.Id,
         Version = package.Version,
         DownloadCount = package.DownloadCount,
         // Workaround for the gallery url until it is fixed.
         Url = String.Format("http://nuget.org/List/Packages/{0}/{1}", HttpUtility.UrlPathEncode(package.Id), HttpUtility.UrlPathEncode(package.Version.ToString()))
     });
 }
All Usage Examples Of System.Web.HttpUtility::UrlPathEncode