Partager via


IVsSQLCLRReferences.UpdateReferences Method

Use to synchronizes the local cache and the server.

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

Syntax

'Declaration
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
)
int UpdateReferences(
    [InAttribute] Object^ pConnection, 
    [InAttribute] Object^ pAssemblySupport, 
    [InAttribute] unsigned int dwReferenceUpdateFlags, 
    [InAttribute] unsigned int cAssemblyCount, 
    [InAttribute] array<String^>^ rgszAssemblies, 
    [InAttribute] String^ szLocalCache, 
    [InAttribute] unsigned int dwProjectPermisionLevel, 
    [InAttribute] IVsSQLCLRReferencesUpdateCallback^ pCallBack
)
abstract UpdateReferences : 
        pConnection:Object * 
        pAssemblySupport:Object * 
        dwReferenceUpdateFlags:uint32 * 
        cAssemblyCount:uint32 * 
        rgszAssemblies:string[] * 
        szLocalCache:string * 
        dwProjectPermisionLevel:uint32 * 
        pCallBack:IVsSQLCLRReferencesUpdateCallback -> int
function UpdateReferences(
    pConnection : Object, 
    pAssemblySupport : Object, 
    dwReferenceUpdateFlags : uint, 
    cAssemblyCount : uint, 
    rgszAssemblies : String[], 
    szLocalCache : String, 
    dwProjectPermisionLevel : uint, 
    pCallBack : IVsSQLCLRReferencesUpdateCallback
) : int

Parameters

  • pConnection
    Type: Object

    [in] Pointer to the IUnknown interface of the connection object.

  • pAssemblySupport
    Type: Object

    [in] Pointer to the IUnknown interface of the assembly.

  • dwReferenceUpdateFlags
    Type: UInt32

    [in] Integer. Flags specifying update options. Taken from the _SqlReferenceUpdateFlags enumeration.

  • cAssemblyCount
    Type: UInt32

    [in] Integer. The number of assembly names in rgszAssemblies.

  • rgszAssemblies
    Type: array<String[]

    [in] Array of strings containing the names of the assemblies to update.

  • szLocalCache
    Type: String

    [in] String containing the path to a file to use for a cache.

  • dwProjectPermisionLevel
    Type: UInt32

    [in] Integer containing a value from the __SQL_ASSEMBLY_PERMISSION_SET enumeration. Indicates the permission level on the assembly: SQLAP_SAFE (1), SQLAP_EXTERNAL (2), or SQLAP_UNRESTRICTED (3).

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

.NET Framework Security

See Also

Reference

IVsSQLCLRReferences Interface

Microsoft.VisualStudio.Shell.Interop Namespace