Class ObjectNotInitializedException
This is a data class used to inform the user that the requested object is not initialized yet.
Inheritance
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Serializable]
public class ObjectNotInitializedException : Exception, ISerializable, _Exception
Constructors
ObjectNotInitializedException()
The default constructor of class ObjectNotInitializedException.
Declaration
public ObjectNotInitializedException()
ObjectNotInitializedException(SerializationInfo, StreamingContext)
An overloaded constructor that takes serialization info and streaming context as parameters.
Declaration
protected ObjectNotInitializedException(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Runtime.Serialization.SerializationInfo | info | Stores all the data needed to serialize or deserialize an object. |
| System.Runtime.Serialization.StreamingContext | context | Describes the source and destination of a given serialized stream, and provides an additional caller-defined context. |
ObjectNotInitializedException(String)
An overloaded constructor that takes message as parameter.
Declaration
public ObjectNotInitializedException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | Exception message. |
ObjectNotInitializedException(String, Exception)
An overloaded constructor that takes exception message and nested exception as parameters.
Declaration
public ObjectNotInitializedException(string message, Exception inner)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | message | Exception message. |
| System.Exception | inner | Nested exception. |
Methods
GetObjectData(SerializationInfo, StreamingContext)
Populates the SerializationInfo class with the data needed to serialize the target object.
Declaration
[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
public void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Runtime.Serialization.SerializationInfo | info | Stores all the data needed to serialize or deserialize an object. |
| System.Runtime.Serialization.StreamingContext | context | Describes the source and destination of a given serialized stream, and provides an additional caller-defined context. |