public interface IRedirectUrlService : IService
Methods View Source Delete(Guid)
Deletes a redirect URL.
Declaration Parameters Type Name Description Guid idThe redirect URL identifier.
View Source Delete(IRedirectUrl)Deletes a redirect URL.
Declarationvoid Delete(IRedirectUrl redirectUrl)
Parameters Type Name Description IRedirectUrl redirectUrl
The redirect URL to delete.
View Source DeleteAll()Deletes all redirect URLs.
Declaration View Source DeleteContentRedirectUrls(Guid)Deletes all redirect URLs for a given content.
Declarationvoid DeleteContentRedirectUrls(Guid contentKey)
Parameters Type Name Description Guid contentKey
The content unique key.
View Source GetAllRedirectUrls(Int32, Int32, out Int64)Gets all redirect URLs.
Declarationvirtual IEnumerable<IRedirectUrl> GetAllRedirectUrls(int skip, int take, out long total)
Parameters Type Name Description System.Int32 skip
Amount to skip.
System.Int32 takeAmount to take.
System.Int64 totalThe total count of redirect URLs.
Returns Type Description IEnumerable<IRedirectUrl>The redirect URLs.
View Source GetAllRedirectUrls(Int32, Int64, Int32, out Int64)Gets all redirect URLs below a given content item.
DeclarationIEnumerable<IRedirectUrl> GetAllRedirectUrls(int rootContentId, long pageIndex, int pageSize, out long total)
Parameters Type Name Description System.Int32 rootContentId
The content unique identifier.
System.Int64 pageIndexThe page index.
System.Int32 pageSizeThe page size.
System.Int64 totalThe total count of redirect URLs.
Returns Type Description IEnumerable<IRedirectUrl>The redirect URLs.
View Source GetAllRedirectUrls(Int64, Int32, out Int64)Gets all redirect URLs.
DeclarationIEnumerable<IRedirectUrl> GetAllRedirectUrls(long pageIndex, int pageSize, out long total)
Parameters Type Name Description System.Int64 pageIndex
The page index.
System.Int32 pageSizeThe page size.
System.Int64 totalThe total count of redirect URLs.
Returns Type Description IEnumerable<IRedirectUrl>The redirect URLs.
View Source GetContentRedirectUrls(Guid)Gets all redirect URLs for a content item.
DeclarationIEnumerable<IRedirectUrl> GetContentRedirectUrls(Guid contentKey)
Parameters Type Name Description Guid contentKey
The content unique key.
Returns Type Description IEnumerable<IRedirectUrl>All redirect URLs for the content item.
View Source GetMostRecentRedirectUrl(String)Gets the most recent redirect URLs corresponding to an Umbraco redirect URL route.
DeclarationIRedirectUrl GetMostRecentRedirectUrl(string url)
Parameters Type Name Description System.String url
The Umbraco redirect URL route.
Returns Type Description IRedirectUrlThe most recent redirect URLs corresponding to the route.
View Source GetMostRecentRedirectUrl(String, String)Gets the most recent redirect URLs corresponding to an Umbraco redirect URL route.
DeclarationIRedirectUrl GetMostRecentRedirectUrl(string url, string culture)
Parameters Type Name Description System.String url
The Umbraco redirect URL route.
System.String cultureThe culture of the request.
Returns Type Description IRedirectUrlThe most recent redirect URLs corresponding to the route.
View Source GetMostRecentRedirectUrlAsync(String, String)Gets the most recent redirect URLs corresponding to an Umbraco redirect URL route.
Declarationvirtual Task<IRedirectUrl> GetMostRecentRedirectUrlAsync(string url, string culture)
Parameters Type Name Description System.String url
The Umbraco redirect URL route.
System.String cultureThe culture of the request.
Returns Type Description System.Threading.Tasks.Task<IRedirectUrl>The most recent redirect URLs corresponding to the route.
View Source Register(String, Guid, String)Registers a redirect URL.
Declarationvoid Register(string url, Guid contentKey, string culture = null)
Parameters Type Name Description System.String url
The Umbraco URL route.
Guid contentKeyThe content unique key.
System.String cultureThe culture.
View Source SearchRedirectUrls(String, Int32, Int32, out Int64)Searches for all redirect URLs that contain a given search term in their URL property.
Declarationvirtual IEnumerable<IRedirectUrl> SearchRedirectUrls(string searchTerm, int skip, int take, out long total)
Parameters Type Name Description System.String searchTerm
The term to search for.
System.Int32 skipAmount to skip.
System.Int32 takeAmount to take.
System.Int64 totalThe total count of redirect URLs.
Returns Type Description IEnumerable<IRedirectUrl>The redirect URLs.
View Source SearchRedirectUrls(String, Int64, Int32, out Int64)Searches for all redirect URLs that contain a given search term in their URL property.
DeclarationIEnumerable<IRedirectUrl> SearchRedirectUrls(string searchTerm, long pageIndex, int pageSize, out long total)
Parameters Type Name Description System.String searchTerm
The term to search for.
System.Int64 pageIndexThe page index.
System.Int32 pageSizeThe page size.
System.Int64 totalThe total count of redirect URLs.
Returns Type Description IEnumerable<IRedirectUrl>The redirect URLs.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4