Partager via


IVsSQLCLRReferences.UpdateReferences Method

Definition

Use to synchronizes the local cache and the server.

public:
 int UpdateReferences(System::Object ^ pConnection, System::Object ^ pAssemblySupport, System::UInt32 dwReferenceUpdateFlags, System::UInt32 cAssemblyCount, cli::array <System::String ^> ^ rgszAssemblies, System::String ^ szLocalCache, System::UInt32 dwProjectPermisionLevel, Microsoft::VisualStudio::Shell::Interop::IVsSQLCLRReferencesUpdateCallback ^ pCallBack);
public:
 int UpdateReferences(Platform::Object ^ pConnection, Platform::Object ^ pAssemblySupport, unsigned int dwReferenceUpdateFlags, unsigned int cAssemblyCount, Platform::Array <Platform::String ^> ^ rgszAssemblies, Platform::String ^ szLocalCache, unsigned int dwProjectPermisionLevel, Microsoft::VisualStudio::Shell::Interop::IVsSQLCLRReferencesUpdateCallback ^ pCallBack);
int UpdateReferences(winrt::Windows::Foundation::IInspectable const & pConnection, winrt::Windows::Foundation::IInspectable const & pAssemblySupport, unsigned int dwReferenceUpdateFlags, unsigned int cAssemblyCount, std::Array <std::wstring const &> const & rgszAssemblies, std::wstring const & szLocalCache, unsigned int dwProjectPermisionLevel, Microsoft::VisualStudio::Shell::Interop::IVsSQLCLRReferencesUpdateCallback const & pCallBack);
public int UpdateReferences (object pConnection, object pAssemblySupport, uint dwReferenceUpdateFlags, uint cAssemblyCount, string[] rgszAssemblies, string szLocalCache, uint dwProjectPermisionLevel, Microsoft.VisualStudio.Shell.Interop.IVsSQLCLRReferencesUpdateCallback pCallBack);
abstract member UpdateReferences : obj * obj * uint32 * uint32 * string[] * string * uint32 * Microsoft.VisualStudio.Shell.Interop.IVsSQLCLRReferencesUpdateCallback -> int
Public 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

Parameters

pConnection
Object

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

pAssemblySupport
Object

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

dwReferenceUpdateFlags
UInt32

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

cAssemblyCount
UInt32

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

rgszAssemblies
String[]

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

szLocalCache
String

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

dwProjectPermisionLevel
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).

pCallBack
IVsSQLCLRReferencesUpdateCallback

[in] Pointer to a IVsSQLCLRReferencesUpdateCallback interface to use for callbacks.

Returns

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

Applies to