WipePageOut() public static method

Removes any occurrence of a Page from the redirection table, both on sources and destinations.
This method is useful when removing a Page.
public static WipePageOut ( System.PageInfo page ) : void
page System.PageInfo The Page to wipe-out.
return void
コード例 #1
0
ファイル: Content.cs プロジェクト: EdenLiang/screwturnwiki
 /// <summary>
 /// Invalidates the cached Content of a Page.
 /// </summary>
 /// <param name="pageInfo">The Page to invalidate the cached content of.</param>
 public static void InvalidatePage(PageInfo pageInfo)
 {
     Cache.RemovePage(pageInfo);
     Redirections.WipePageOut(pageInfo);
 }
コード例 #2
0
 /// <summary>
 /// Invalidates the cached Content of a Page.
 /// </summary>
 /// <param name="pageInfo">The Page to invalidate the cached content of.</param>
 public static void InvalidatePage(PageInfo pageInfo)
 {
     Cache.RemovePage(pageInfo);
     Redirections.WipePageOut(pageInfo);
     pageInfo.Provider.RemoveContentCache(pageInfo);
 }