예제 #1
0
 /// <summary>
 /// Raises the <see cref="E:ValidateUIAccess"/> event. Override this in inheriting classes to customize behavior,
 /// always calling the base-class implementation as well. Check for e.Cancel == true and do an early exit if so.
 /// </summary>
 /// <remarks>
 /// This is only a code sample on how you can utilize this event.
 /// </remarks>
 /// <param name="e">The <see cref="EPiServer.ValidateUIAccessEventArgs"/> instance containing the event data.</param>
 protected override void OnValidateRequestAccess(ValidateRequestAccessEventArgs e)
 {
     base.OnValidateRequestAccess(e);
     if (e.Cancel)
     {
         return;
     }
 }
예제 #2
0
 /// <summary>
 /// Raises the <see cref="E:ValidateUIAccess"/> event. Override this in inheriting classes to customize behavior,
 /// always calling the base-class implementation as well. Check for e.Cancel == true and do an early exit if so.
 /// </summary>
 /// <remarks>
 /// This is only a code sample on how you can utilize this event.
 /// </remarks>
 /// <param name="e">The <see cref="EPiServer.ValidateUIAccessEventArgs"/> instance containing the event data.</param>
 protected override void OnValidateRequestAccess(ValidateRequestAccessEventArgs e)
 {
     base.OnValidateRequestAccess(e);
     if (e.Cancel)
     {
         return;
     }
 }