IVsSQLCLRReferences.UpdateReferences 方法

使用同步本地缓存和服务器。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop.8.0(在 Microsoft.VisualStudio.Shell.Interop.8.0.dll 中)

语法

声明
Function UpdateReferences ( _
    pConnection As Object, _
    pAssemblySupport As Object, _
    dwReferenceUpdateFlags As UInteger, _
    cAssemblyCount As UInteger, _
    rgszAssemblies As String(), _
    szLocalCache As String, _
    dwProjectPermisionLevel As UInteger, _
    pCallBack As IVsSQLCLRReferencesUpdateCallback _
) As Integer
int UpdateReferences(
    Object pConnection,
    Object pAssemblySupport,
    uint dwReferenceUpdateFlags,
    uint cAssemblyCount,
    string[] rgszAssemblies,
    string szLocalCache,
    uint dwProjectPermisionLevel,
    IVsSQLCLRReferencesUpdateCallback pCallBack
)

参数

  • pConnection
    类型:System.Object
    [in] 对连接对象的 IUnknown 接口的指针。
  • pAssemblySupport
    类型:System.Object
    [in] 对程序集的 IUnknown 接口的指针。
  • cAssemblyCount
    类型:System.UInt32
    [in] 整数。程序集名称数。 rgszAssemblies的。
  • rgszAssemblies
    类型:array<System.String[]
    [in] 包含程序集的名称的字符串数组对更新。
  • szLocalCache
    类型:System.String
    [in] 字符串包含文件的路径为缓存使用。
  • dwProjectPermisionLevel
    类型:System.UInt32
    [in] 包含从 __SQL_ASSEMBLY_PERMISSION_SET 枚举的整数值。指示程序集中的权限级别:SQLAP_SAFE (1), SQLAP_EXTERNAL (2) 或 SQLAP_UNRESTRICTED (3)。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

.NET Framework 安全性

请参见

参考

IVsSQLCLRReferences 接口

Microsoft.VisualStudio.Shell.Interop 命名空间