다음을 통해 공유


IVsContainedLanguageHost.InsertReference Method

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)

Syntax

‘선언
Function InsertReference ( _
    ByRef __MIDL_0010 As UShort _
) As Integer
‘사용 방법
Dim instance As IVsContainedLanguageHost
Dim __MIDL_0010 As UShort
Dim returnValue As Integer

returnValue = instance.InsertReference(__MIDL_0010)
int InsertReference(
    ref ushort __MIDL_0010
)
int InsertReference(
    [InAttribute] unsigned short% __MIDL_0010
)
abstract InsertReference : 
        __MIDL_0010:uint16 byref -> int 
function InsertReference(
    __MIDL_0010 : ushort
) : int

Parameters

Return Value

Type: System.Int32
If successful, returns S_OK; otherwise, returns an error code.

Remarks

COM Signature

From singlefileeditor.idl:

HRESULT InsertReference(
   [in]const WCHAR *pwcReferenceP
);

An example of the string defining the System assembly:

"system,version=1.0.0.1,culture=neutral,publickeytoken=9b35aa32c8d4fb1"

.NET Framework Security

See Also

Reference

IVsContainedLanguageHost Interface

IVsContainedLanguageHost Members

Microsoft.VisualStudio.TextManager.Interop Namespace