コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the RewriteRules EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToRewriteRules(RewriteRule rewriteRule)
 {
     base.AddObject("RewriteRules", rewriteRule);
 }
コード例 #2
0
 /// <summary>
 /// Create a new RewriteRule object.
 /// </summary>
 /// <param name="rewriteRuleID">Initial value of the RewriteRuleID property.</param>
 /// <param name="uRL">Initial value of the URL property.</param>
 /// <param name="rewrite">Initial value of the Rewrite property.</param>
 /// <param name="virtualPage_VirtualPageID">Initial value of the VirtualPage_VirtualPageID property.</param>
 public static RewriteRule CreateRewriteRule(global::System.Int32 rewriteRuleID, global::System.String uRL, global::System.String rewrite, global::System.Int32 virtualPage_VirtualPageID)
 {
     RewriteRule rewriteRule = new RewriteRule();
     rewriteRule.RewriteRuleID = rewriteRuleID;
     rewriteRule.URL = uRL;
     rewriteRule.Rewrite = rewrite;
     rewriteRule.VirtualPage_VirtualPageID = virtualPage_VirtualPageID;
     return rewriteRule;
 }