Marshal.BindToMoniker(String) Méthode

Définition

Obtient un pointeur d'interface identifié par le moniker spécifié.

public:
 static System::Object ^ BindToMoniker(System::String ^ monikerName);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static object BindToMoniker (string monikerName);
public static object BindToMoniker (string monikerName);
[System.Security.SecurityCritical]
public static object BindToMoniker (string monikerName);
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member BindToMoniker : string -> obj
static member BindToMoniker : string -> obj
[<System.Security.SecurityCritical>]
static member BindToMoniker : string -> obj
Public Shared Function BindToMoniker (monikerName As String) As Object

Paramètres

monikerName
String

Moniker correspondant au pointeur d'interface voulu.

Retours

Objet contenant une référence au pointeur d’interface identifié par le paramètre monikerName. Un moniker est un nom et dans ce cas, le moniker est défini par une interface.

Attributs

Exceptions

Un HRESULT non reconnu a été retourné par la méthode BindToMoniker non managée.

Remarques

BindToMoniker expose la méthode COM BindToMoniker , qui produit un objet que vous pouvez convertir en n’importe quelle interface COM dont vous avez besoin. Cette méthode fournit les mêmes fonctionnalités que la GetObject méthode dans Visual Basic 6.0 et Visual Basic 2005.

S’applique à