Marshal.BindToMoniker(String) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets an interface pointer identified by the specified moniker.
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
- monikerName
- String
The moniker corresponding to the desired interface pointer.
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.
- Attributes
An unrecognized HRESULT was returned by the unmanaged BindToMoniker
method.
BindToMoniker 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 Visual Basic 2005.
Product | Versions |
---|---|
.NET | Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: