IVsSQLCLRReferences::InvokeNewReferencesDlg Method (Object^, Object^, UInt32, String^, UInt32, IVsComponentUser^)

 

Invokes the Add New Reference dialog.

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

int InvokeNewReferencesDlg(
	Object^ pConnection,
	Object^ pAssemblySupport,
	unsigned int dwAddNewReferenceFlags,
	String^ szLocalCache,
	unsigned int dwProjectPermisionLevel,
	IVsComponentUser^ pComponentUserCallback
)

Parameters

pConnection
Type: System::Object^

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

pAssemblySupport
Type: System::Object^

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

dwAddNewReferenceFlags
Type: System::UInt32

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

szLocalCache
Type: System::String^

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

dwProjectPermisionLevel
Type: System::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
Type: Microsoft.VisualStudio.Shell.Interop::IVsComponentUser^

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

Return Value

Type: System::Int32

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

Return to top
Show: