Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
UnauthorizedAccessEventArgs.cs
1using System;
2using System.Diagnostics;
3using System.Reflection;
4
6{
10 public class UnauthorizedAccessEventArgs : EventArgs
11 {
12 private readonly MethodBase method;
13 private readonly Type type;
14 private readonly Assembly assembly;
15 private readonly StackTrace trace;
16
23 : base()
24 {
25 this.method = Frame.Method;
26 this.type = Frame.Type;
27 this.assembly = Frame.Assembly;
28 this.trace = Trace;
29 }
30
34 public MethodBase Method => this.method;
35
39 public Type Type => this.type;
40
44 public Assembly Assembly => this.assembly;
45
49 public StackTrace Trace => this.trace;
50 }
51}
Contains information about a specific frame in a call stack.
MethodBase Method
Method represented by the frame.
Type Type
Call made from this type.
Assembly Assembly
Assembly represented by the frame.
Event arguments for the Assert.UnauthorizedAccess event.
Assembly Assembly
Assembly in which the type is defined.
UnauthorizedAccessEventArgs(FrameInformation Frame, StackTrace Trace)
Event arguments for the Assert.UnauthorizedAccess event.