Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros
SecurityException.cs
Go to the documentation of this file.
4
5namespace System.Security;
6
8[TypeForwardedFrom("mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
10{
11 public object? Demanded { get; set; }
12
13 public object? DenySetInstance { get; set; }
14
15 public AssemblyName? FailedAssemblyInfo { get; set; }
16
17 public string? GrantedSet { get; set; }
18
19 public MethodInfo? Method { get; set; }
20
21 public string? PermissionState { get; set; }
22
23 public Type? PermissionType { get; set; }
24
25 public object? PermitOnlySetInstance { get; set; }
26
27 public string? RefusedSet { get; set; }
28
29 public string? Url { get; set; }
30
32 : base(SR.Arg_SecurityException)
33 {
34 base.HResult = -2146233078;
35 }
36
37 public SecurityException(string? message)
38 : base(message)
39 {
40 base.HResult = -2146233078;
41 }
42
43 public SecurityException(string? message, Exception? inner)
44 : base(message, inner)
45 {
46 base.HResult = -2146233078;
47 }
48
49 public SecurityException(string? message, Type? type)
50 : base(message)
51 {
52 base.HResult = -2146233078;
54 }
55
56 public SecurityException(string? message, Type? type, string? state)
57 : base(message)
58 {
59 base.HResult = -2146233078;
62 }
63
65 : base(info, context)
66 {
67 Demanded = (string)info.GetValueNoThrow("Demanded", typeof(string));
68 GrantedSet = (string)info.GetValueNoThrow("GrantedSet", typeof(string));
69 RefusedSet = (string)info.GetValueNoThrow("RefusedSet", typeof(string));
70 DenySetInstance = (string)info.GetValueNoThrow("Denied", typeof(string));
71 PermitOnlySetInstance = (string)info.GetValueNoThrow("PermitOnly", typeof(string));
72 Url = (string)info.GetValueNoThrow("Url", typeof(string));
73 }
74
75 public override string ToString()
76 {
77 return base.ToString();
78 }
79
81 {
82 base.GetObjectData(info, context);
83 info.AddValue("Demanded", Demanded, typeof(string));
84 info.AddValue("GrantedSet", GrantedSet, typeof(string));
85 info.AddValue("RefusedSet", RefusedSet, typeof(string));
86 info.AddValue("Denied", DenySetInstance, typeof(string));
87 info.AddValue("PermitOnly", PermitOnlySetInstance, typeof(string));
88 info.AddValue("Url", Url, typeof(string));
89 }
90}
Definition SR.cs:7
SecurityException(string? message, Type? type)
SecurityException(string? message, Exception? inner)
SecurityException(string? message, Type? type, string? state)
override void GetObjectData(SerializationInfo info, StreamingContext context)
SecurityException(SerializationInfo info, StreamingContext context)