CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
SecurityException.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using System.Linq;
4#if !(ANDROID || IOS) && !NETFX_CORE
5using System.Security.Permissions;
6#endif
7using System.Text;
8using System.Threading.Tasks;
9
10namespace Csla.Security
11{
16 public class SecurityException : Exception
17 {
22 { }
23
28 public SecurityException(string message)
29 : base(message)
30 { }
31
37 public SecurityException(string message, Exception innerException)
38 : base(message, innerException)
39 { }
40
41#if !(ANDROID || IOS) && !NETFX_CORE
47 protected SecurityException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
48 : base(info, context)
49 {
50 }
51
57 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1062:ValidateArgumentsOfPublicMethods")]
58#if !NET5_0 && !NET6_0
59 [SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)]
60 [SecurityPermission(SecurityAction.Demand, Flags = SecurityPermissionFlag.SerializationFormatter)]
61#endif
62 public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
63 {
64 base.GetObjectData(info, context);
65 }
66#endif
67 }
68}
69
SecurityException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
Creates an instance of the object for serialization.
override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
Serializes the object.
SecurityException()
Creates an instance of the type.
SecurityException(string message, Exception innerException)
Creates an instance of the type.
SecurityException(string message)
Creates an instance of the type.
@ Serializable
Prevents updating or inserting until the transaction is complete.