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
- Guid
Tipo: System.String
Obligatorio.GUID del comando.
- 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
- Plena confianza para el llamador inmediato. Un código de confianza parcial no puede utilizar este miembro. Para obtener más información, vea Utilizar bibliotecas de código que no es de plena confianza.