System.Runtime.InteropServices.Marshal.BindToMoniker Method

Gets an interface pointer identified by the specified moniker.

Syntax

public static object BindToMoniker (string monikerName)

Parameters

monikerName
The moniker corresponding to the desired interface pointer.

Returns

An object containing a reference to the interface pointer identified by the monikerName parameter. A moniker is a name, and in this case, the moniker is defined by an interface.

Remarks

Marshal.BindToMoniker(string) exposes the COM BindToMoniker method, which produces an object that you can cast to any COM interface you require. This method provides the same functionality as the GetObject method in Visual Basic 6.0 and vbprvblong.

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0