IVsContainedLanguageHost::InsertReference Method (UInt16)

 

Adds an assembly that is currently in the global assembly cache (GAC).

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

int InsertReference(
	[InAttribute] unsigned short% __MIDL_0010
)

Parameters

__MIDL_0010
Type: System::UInt16

[in] A string defining the reference to be added. See Remarks for an example.

Return Value

Type: System::Int32

If successful, returns S_OK; otherwise, returns an error code.

An example of the string defining the System assembly:

"system,version=1.0.0.1,culture=neutral,publickeytoken=9b35aa32c8d4fb1"
Return to top
Show: