Class SecurityException
Thrown when a user does not have the permissions to start/stop/initialize the cache.
Namespace:
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Serializable]
public class SecurityException : CacheException, ISerializable, _Exception
SecurityException()
default constructor.
Declaration
public SecurityException()
SecurityException(SerializationInfo, StreamingContext)
overloaded constructor, manual serialization.
Declaration
protected SecurityException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | |
System.Runtime.Serialization.StreamingContext | context |
SecurityException(String)
overloaded constructor, takes the reason as parameter.
Declaration
public SecurityException(string reason)
Parameters
Type | Name | Description |
---|---|---|
System.String | reason |
SecurityException(String, Exception)
overloaded constructor.
Declaration
public SecurityException(string reason, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
System.String | reason | reason for exception |
System.Exception | inner | nested exception |
GetObjectData(SerializationInfo, StreamingContext)
manual serialization
Declaration
[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | |
System.Runtime.Serialization.StreamingContext | context |