[This is preliminary documentation and is subject to change.]
Gets instance of default implementation of message box
Namespace: Tools.WindowsT.IndependentTAssembly: Tools.Windows (in Tools.Windows.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)] public static MessageBox GetDefault() |
| Visual Basic |
|---|
<EditorBrowsableAttribute(EditorBrowsableState.Advanced)> _ Public Shared Function GetDefault As MessageBox |
| Visual C++ |
|---|
[EditorBrowsableAttribute(EditorBrowsableState::Advanced)] public: static MessageBox^ GetDefault() |
| F# |
|---|
[<EditorBrowsableAttribute(EditorBrowsableState.Advanced)>] static member GetDefault : unit -> MessageBox |
| JScript |
|---|
public static function GetDefault() : MessageBox |
Return Value
Instance of type which specified by the DefaultImplementation property
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentException | DefaultImplementation is not RuntimeType |
| System..::..NotSupportedException | DefaultImplementation cannot be a TypeBuilder .-or- Creation of TypedReference, ArgIterator, Void, and RuntimeArgumentHandle types, or arrays of those types, is not supported. |
| System.Reflection..::..TargetInvocationException | The constructor being called throws an exception. |
| System..::..MethodAccessException | The caller does not have permission to call default constructor of type which is specified in DefaultImplementation. |
| System..::..MemberAccessException | Cannot create an instance of an abstract class, or member was invoked with a late-binding mechanism. |
| System.Runtime.InteropServices..::..InvalidComObjectException | The COM type was not obtained through Overload:GetTypeFromProgID(String) or Overload:GetTypeFromCLSID(Guid). |
| System..::..MissingMethodException | No matching public constructor was found. |
| System.Runtime.InteropServices..::..COMException | DefaultImplementation is a COM object but the class identifier used to obtain the type is invalid, or the identified class is not registered. |
| System..::..TypeLoadException | DefaultImplementation is not a valid type. |