将当前位于全局程序集缓存 (GAC)中的程序集。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop.8.0(在 Microsoft.VisualStudio.TextManager.Interop.8.0.dll 中)
语法
声明
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
参数
__MIDL_0010
类型:UInt16%[in] 定义引用的字符串将添加。 有关示例参见备注。
返回值
类型:Int32
如果成功,则返回; S_OK否则,返回错误代码。
备注
定义系统程序集中的字符串的示例:
"system,version=1.0.0.1,culture=neutral,publickeytoken=9b35aa32c8d4fb1"
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。