Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Bind Method
Collapse the table of content
Expand the table of content

ITypeComp.Bind Method

Note: This method is new in the .NET Framework version 2.0.

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
)
void Bind (
	String szName, 
	int lHashVal, 
	short wFlags, 
	/** @attribute OutAttribute() */ /** @ref */ ITypeInfo ppTInfo, 
	/** @attribute OutAttribute() */ /** @ref */ DESCKIND pDescKind, 
	/** @attribute OutAttribute() */ /** @ref */ BINDPTR pBindPtr
)
JScript does not support passing value-type arguments by reference.

Parameters

szName

The name to bind.

lHashVal

A hash value for szName computed by LHashValOfNameSys.

wFlags

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

ppTInfo

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

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

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.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

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

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2015 Microsoft