10 [__DynamicallyInvokable]
13 private string objectName;
17 [__DynamicallyInvokable]
20 [__DynamicallyInvokable]
24 if (text ==
null || text.Length == 0)
28 string resourceString =
Environment.GetResourceString(
"ObjectDisposed_ObjectName_Name", text);
35 [__DynamicallyInvokable]
38 [__DynamicallyInvokable]
41 if (objectName ==
null && !CompatibilitySwitches.IsAppEarlierThanWindowsPhone8)
50 : this(null,
Environment.GetResourceString(
"ObjectDisposed_Generic"))
56 [__DynamicallyInvokable]
58 : this(objectName,
Environment.GetResourceString(
"ObjectDisposed_Generic"))
65 [__DynamicallyInvokable]
69 SetErrorCode(-2146232798);
70 this.objectName = objectName;
76 [__DynamicallyInvokable]
78 : base(message, innerException)
80 SetErrorCode(-2146232798);
89 objectName = info.GetString(
"ObjectName");
98 base.GetObjectData(info, context);
99 info.AddValue(
"ObjectName",
ObjectName, typeof(
string));
static string NewLine
Gets the newline string defined for this environment.
ObjectDisposedException(string objectName)
Initializes a new instance of the T:System.ObjectDisposedException class with a string containing the...
override void GetObjectData(SerializationInfo info, StreamingContext context)
Retrieves the T:System.Runtime.Serialization.SerializationInfo object with the parameter name and add...
Describes the source and destination of a given serialized stream, and provides an additional caller-...
The exception that is thrown when an operation is performed on a disposed object.
Provides information about, and means to manipulate, the current environment and platform....
ObjectDisposedException(SerializationInfo info, StreamingContext context)
Initializes a new instance of the T:System.ObjectDisposedException class with serialized data.
ObjectDisposedException(string message, Exception innerException)
Initializes a new instance of the T:System.ObjectDisposedException class with a specified error messa...
string ObjectName
Gets the name of the disposed object.
ObjectDisposedException(string objectName, string message)
Initializes a new instance of the T:System.ObjectDisposedException class with the specified object na...
Stores all the data needed to serialize or deserialize an object. This class cannot be inherited.
override string Message
Gets the message that describes the error.
Represents errors that occur during application execution.To browse the .NET Framework source code fo...
Specifies that the class can be serialized.
The exception that is thrown when a method call is invalid for the object's current state.