Support.GetHInstance Methode

Definition

Achtung

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

Ruft das Instanzhandle (HINSTANCE) für die aktuelle Anwendung ab.

public:
 static IntPtr GetHInstance();
public static IntPtr GetHInstance();
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static IntPtr GetHInstance();
static member GetHInstance : unit -> nativeint
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member GetHInstance : unit -> nativeint
Public Function GetHInstance () As IntPtr

Gibt zurück

IntPtr

nativeint

Eine IntPtr für die aktuelle Anwendungsinstanz.

Attribute

Hinweise

Diese Funktion entspricht dem Aufrufen GetHINSTANCE.

Note

Funktionen und Objekte im namespace Microsoft.VisualBasic.Compatibility.VB6 werden von den Tools zum Upgrade von Visual Basic 6.0 auf Visual Basic 2008 bereitgestellt. In den meisten Fällen haben diese Funktionen und Objekte doppelte Funktionen, die Sie in anderen Namespaces im .NET Framework finden können. Sie sind nur erforderlich, wenn sich das Visual Basic 6.0-Codemodell erheblich von der .NET Framework-Implementierung unterscheidet.

Gilt für: