Compartir a través de


IVsSQLCLRReferences.InvokeNewReferencesDlg Method

Invokes the SQL CLR Add New Reference dialog.

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

Syntax

'Declaración
Function InvokeNewReferencesDlg ( _
    pConnection As Object, _
    pAssemblySupport As Object, _
    dwAddNewReferenceFlags As UInteger, _
    szLocalCache As String, _
    dwProjectPermisionLevel As UInteger, _
    pComponentUserCallback As IVsComponentUser _
) As Integer
'Uso
Dim instance As IVsSQLCLRReferences
Dim pConnection As Object
Dim pAssemblySupport As Object
Dim dwAddNewReferenceFlags As UInteger
Dim szLocalCache As String
Dim dwProjectPermisionLevel As UInteger
Dim pComponentUserCallback As IVsComponentUser
Dim returnValue As Integer

returnValue = instance.InvokeNewReferencesDlg(pConnection, _
    pAssemblySupport, dwAddNewReferenceFlags, _
    szLocalCache, dwProjectPermisionLevel, _
    pComponentUserCallback)
int InvokeNewReferencesDlg(
    Object pConnection,
    Object pAssemblySupport,
    uint dwAddNewReferenceFlags,
    string szLocalCache,
    uint dwProjectPermisionLevel,
    IVsComponentUser pComponentUserCallback
)
int InvokeNewReferencesDlg(
    [InAttribute] Object^ pConnection, 
    [InAttribute] Object^ pAssemblySupport, 
    [InAttribute] unsigned int dwAddNewReferenceFlags, 
    [InAttribute] String^ szLocalCache, 
    [InAttribute] unsigned int dwProjectPermisionLevel, 
    [InAttribute] IVsComponentUser^ pComponentUserCallback
)
abstract InvokeNewReferencesDlg : 
        pConnection:Object * 
        pAssemblySupport:Object * 
        dwAddNewReferenceFlags:uint32 * 
        szLocalCache:string * 
        dwProjectPermisionLevel:uint32 * 
        pComponentUserCallback:IVsComponentUser -> int 
function InvokeNewReferencesDlg(
    pConnection : Object, 
    pAssemblySupport : Object, 
    dwAddNewReferenceFlags : uint, 
    szLocalCache : String, 
    dwProjectPermisionLevel : uint, 
    pComponentUserCallback : IVsComponentUser
) : int

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

Return Value

Type: System.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

IVsSQLCLRReferences Members

Microsoft.VisualStudio.Shell.Interop Namespace