Compartir a través de


Commands2.Raise (Método) (String, Int32, Object%, Object%)

Ejecuta el comando especificado.

Espacio de nombres:  EnvDTE80
Ensamblado:  EnvDTE80 (en EnvDTE80.dll)

Sintaxis

'Declaración
Sub Raise ( _
    Guid As String, _
    ID As Integer, _
    <OutAttribute> ByRef CustomIn As Object, _
    <OutAttribute> ByRef CustomOut As Object _
)
void Raise(
    string Guid,
    int ID,
    out Object CustomIn,
    out Object CustomOut
)
void Raise(
    [InAttribute] String^ Guid, 
    [InAttribute] int ID, 
    [InAttribute] [OutAttribute] Object^% CustomIn, 
    [InAttribute] [OutAttribute] Object^% CustomOut
)
abstract Raise : 
        Guid:string * 
        ID:int * 
        CustomIn:Object byref * 
        CustomOut:Object byref -> unit 
function Raise(
    Guid : String, 
    ID : int, 
    CustomIn : Object, 
    CustomOut : Object
)

Parámetros

  • ID
    Tipo: System.Int32
    Obligatorio.Identificador del comando.
  • CustomIn
    Tipo: System.Object%
    Obligatorio.Argumentos de un valor SafeArray recibido del objeto OLECommandTarget.
  • CustomOut
    Tipo: System.Object%
    Obligatorio.Argumentos de un valor SafeArray enviado que devuelve el objeto OLECommandTarget.

Implementaciones

Commands.Raise(String, Int32, Object%, Object%)

Ejemplos

Sub RaiseExample()
   ' Before running, you must add a reference to the Office 
   ' typelib to gain access to the CommandBar object.
   Dim cmds As Commands
   Dim cmdobj As Command
   Dim customin, customout As Object
   Dim colAddins As AddIns

   ' Set references.
   colAddins = DTE.AddIns()
   cmds = DTE.Commands
   cmdobj = cmds.Item("File.NewFile")

   ' Execute the File.NewFile command.
   cmds.Raise(cmdobj.Guid, cmdobj.ID, customin, customout)
End Sub

Seguridad de .NET Framework

Vea también

Referencia

Commands2 Interfaz

Raise (Sobrecarga)

EnvDTE80 (Espacio de nombres)