11 [__DynamicallyInvokable]
15 [__DynamicallyInvokable]
17 : base(
Environment.GetResourceString(
"Arg_COMException"))
19 SetErrorCode(-2147467259);
24 [__DynamicallyInvokable]
28 SetErrorCode(-2147467259);
34 [__DynamicallyInvokable]
36 : base(message, inner)
38 SetErrorCode(-2147467259);
44 [__DynamicallyInvokable]
48 SetErrorCode(errorCode);
51 [SecuritySafeCritical]
53 : base(Win32Native.GetMessage(hresult))
55 SetErrorCode(hresult);
59 : base(message, inner)
61 SetErrorCode(hresult);
81 if (message !=
null && message.Length > 0)
83 text = text +
": " + message;
86 if (innerException !=
null)
88 text = text +
" ---> " + innerException.
ToString();
override string ToString()
Creates and returns a string representation of the current exception.
static CultureInfo InvariantCulture
Gets the T:System.Globalization.CultureInfo object that is culture-independent (invariant).
static string NewLine
Gets the newline string defined for this environment.
COMException(string message)
Initializes a new instance of the T:System.Runtime.InteropServices.COMException class with a specifie...
COMException(string message, Exception inner)
Initializes a new instance of the T:System.Runtime.InteropServices.COMException class with a specifie...
override string ToString()
Converts the contents of the exception to a string.
COMException()
Initializes a new instance of the T:System.Runtime.InteropServices.COMException class with default va...
new Type GetType()
Gets the runtime type of the current instance.
override string ToString()
Returns a String representing the name of the current Type.
The exception that is thrown when an unrecognized HRESULT is returned from a COM method call.
Describes the source and destination of a given serialized stream, and provides an additional caller-...
COMException(string message, int errorCode)
Initializes a new instance of the T:System.Runtime.InteropServices.COMException class with a specifie...
Provides information about, and means to manipulate, the current environment and platform....
COMException(SerializationInfo info, StreamingContext context)
Initializes a new instance of the T:System.Runtime.InteropServices.COMException class from serializat...
virtual string StackTrace
Gets a string representation of the immediate frames on the call stack.
Exception InnerException
Gets the T:System.Exception instance that caused the current exception.
virtual string Message
Gets a message that describes the current exception.
Stores all the data needed to serialize or deserialize an object. This class cannot be inherited.
The base exception type for all COM interop exceptions and structured exception handling (SEH) except...
Represents errors that occur during application execution.To browse the .NET Framework source code fo...
Specifies that the class can be serialized.
Provides information about a specific culture (called a locale for unmanaged code development)....