Export (0) Print
Expand All

ITypeComp.Bind Method

Maps a name to a member of a type, or binds global variables and functions contained in a type library.

Namespace:  System.Runtime.InteropServices.ComTypes
Assembly:  mscorlib (in mscorlib.dll)

void Bind(
	string szName,
	int lHashVal,
	short wFlags,
	out ITypeInfo ppTInfo,
	out DESCKIND pDescKind,
	out BINDPTR pBindPtr
)

Parameters

szName
Type: System.String

The name to bind.

lHashVal
Type: System.Int32

A hash value for szName computed by LHashValOfNameSys.

wFlags
Type: System.Int16

A flags word containing one or more of the invoke flags defined in the INVOKEKIND enumeration.

ppTInfo
Type: System.Runtime.InteropServices.ComTypes.ITypeInfo

When this method returns, contains a reference to the type description that contains the item to which it is bound, if a FUNCDESC or VARDESC was returned. This parameter is passed uninitialized.

pDescKind
Type: System.Runtime.InteropServices.ComTypes.DESCKIND

When this method returns, contains a reference to a DESCKIND enumerator that indicates whether the name bound-to is a VARDESC, FUNCDESC, or TYPECOMP. This parameter is passed uninitialized.

pBindPtr
Type: System.Runtime.InteropServices.ComTypes.BINDPTR

When this method returns, contains a reference to the bound-to VARDESC, FUNCDESC, or ITypeComp interface. This parameter is passed uninitialized.

For more information, see the existing documentation for ITypeComp::Bind in the MSDN library.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

.NET for Windows Store apps

Supported in: Windows 8

.NET for Windows Phone apps

Supported in: Windows Phone 8.1

Windows Phone 8.1, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft