[This is preliminary documentation and is subject to change.]

Gets instance of default implementation of message box

Namespace: Tools.WindowsT.IndependentT
Assembly: 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

ExceptionCondition
System..::..ArgumentExceptionDefaultImplementation is not RuntimeType
System..::..NotSupportedExceptionDefaultImplementation cannot be a TypeBuilder .-or- Creation of TypedReference, ArgIterator, Void, and RuntimeArgumentHandle types, or arrays of those types, is not supported.
System.Reflection..::..TargetInvocationExceptionThe constructor being called throws an exception.
System..::..MethodAccessExceptionThe caller does not have permission to call default constructor of type which is specified in DefaultImplementation.
System..::..MemberAccessExceptionCannot create an instance of an abstract class, or member was invoked with a late-binding mechanism.
System.Runtime.InteropServices..::..InvalidComObjectExceptionThe COM type was not obtained through Overload:GetTypeFromProgID(String) or Overload:GetTypeFromCLSID(Guid).
System..::..MissingMethodExceptionNo matching public constructor was found.
System.Runtime.InteropServices..::..COMExceptionDefaultImplementation is a COM object but the class identifier used to obtain the type is invalid, or the identified class is not registered.
System..::..TypeLoadExceptionDefaultImplementation is not a valid type.

See Also