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
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
- __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.
Remarks
An example of the string defining the System assembly:
"system,version=1.0.0.1,culture=neutral,publickeytoken=9b35aa32c8d4fb1"
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.