共用方式為


IVsSQLCLRReferences.InvokeNewReferencesDlg Method

Definition

Invokes the Add New Reference dialog.

public:
 int InvokeNewReferencesDlg(System::Object ^ pConnection, System::Object ^ pAssemblySupport, System::UInt32 dwAddNewReferenceFlags, System::String ^ szLocalCache, System::UInt32 dwProjectPermisionLevel, Microsoft::VisualStudio::Shell::Interop::IVsComponentUser ^ pComponentUserCallback);
public:
 int InvokeNewReferencesDlg(Platform::Object ^ pConnection, Platform::Object ^ pAssemblySupport, unsigned int dwAddNewReferenceFlags, Platform::String ^ szLocalCache, unsigned int dwProjectPermisionLevel, Microsoft::VisualStudio::Shell::Interop::IVsComponentUser ^ pComponentUserCallback);
int InvokeNewReferencesDlg(winrt::Windows::Foundation::IInspectable const & pConnection, winrt::Windows::Foundation::IInspectable const & pAssemblySupport, unsigned int dwAddNewReferenceFlags, std::wstring const & szLocalCache, unsigned int dwProjectPermisionLevel, Microsoft::VisualStudio::Shell::Interop::IVsComponentUser const & pComponentUserCallback);
public int InvokeNewReferencesDlg (object pConnection, object pAssemblySupport, uint dwAddNewReferenceFlags, string szLocalCache, uint dwProjectPermisionLevel, Microsoft.VisualStudio.Shell.Interop.IVsComponentUser pComponentUserCallback);
abstract member InvokeNewReferencesDlg : obj * obj * uint32 * string * uint32 * Microsoft.VisualStudio.Shell.Interop.IVsComponentUser -> int
Public Function InvokeNewReferencesDlg (pConnection As Object, pAssemblySupport As Object, dwAddNewReferenceFlags As UInteger, szLocalCache As String, dwProjectPermisionLevel As UInteger, pComponentUserCallback As IVsComponentUser) 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 supporting the dialog.

dwAddNewReferenceFlags
UInt32

[in] Integer. Flags specifying add options. Values taken from the _SqlAddNewReferenceFlags enumeration.

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

pComponentUserCallback
IVsComponentUser

[in] Pointer to the IVsComponentUser to use for callbacks.

Returns

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

Applies to