Nota
O acesso a esta página requer autorização. Pode tentar iniciar sessão ou alterar os diretórios.
O acesso a esta página requer autorização. Pode tentar alterar os diretórios.
Publicado: abril de 2016
Cria um arquivo temporário de lote a ser executado com a saída enviada por pipe para um painel de saída no IDE.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (em Microsoft.VisualStudio.Shell.Interop.dll)
Sintaxe
int ExecBatchScript(
string pszBatchFileContents,
string pszWorkingDir,
uint lpf,
IVsOutputWindowPane pOutputWindowPane,
uint nTaskItemCategory,
uint nTaskItemBitmap,
string pszTaskListSubcategory,
IVsLaunchPadEvents pVsLaunchPadEvents,
string[] pbstrOutput
)
int ExecBatchScript(
String^ pszBatchFileContents,
String^ pszWorkingDir,
unsigned int lpf,
IVsOutputWindowPane^ pOutputWindowPane,
unsigned int nTaskItemCategory,
unsigned int nTaskItemBitmap,
String^ pszTaskListSubcategory,
IVsLaunchPadEvents^ pVsLaunchPadEvents,
array<String^>^ pbstrOutput
)
abstract ExecBatchScript :
pszBatchFileContents:string *
pszWorkingDir:string *
lpf:uint32 *
pOutputWindowPane:IVsOutputWindowPane *
nTaskItemCategory:uint32 *
nTaskItemBitmap:uint32 *
pszTaskListSubcategory:string *
pVsLaunchPadEvents:IVsLaunchPadEvents *
pbstrOutput:string[] -> int
Function ExecBatchScript (
pszBatchFileContents As String,
pszWorkingDir As String,
lpf As UInteger,
pOutputWindowPane As IVsOutputWindowPane,
nTaskItemCategory As UInteger,
nTaskItemBitmap As UInteger,
pszTaskListSubcategory As String,
pVsLaunchPadEvents As IVsLaunchPadEvents,
pbstrOutput As String()
) As Integer
Parâmetros
pszBatchFileContents
Type: System.String[in] Cadeia de caracteres que contém o texto a ser gravado para o arquivo em lotes.
pszWorkingDir
Type: System.String[in] Diretório de trabalho que é passado para CreateProcess pelo ambiente. Pode ser null.
lpf
Type: System.UInt32[in] Sinalizadores de ponto de partida. Valores são obtidos do _LAUNCHPAD_FLAGS enumeração.
pOutputWindowPane
Type: Microsoft.VisualStudio.Shell.Interop.IVsOutputWindowPane[in] Ponteiro para o IVsOutputWindowPane interface criada por CreatePane.
nTaskItemCategory
Type: System.UInt32[in] Categoria do item de tarefa se lpf for definido como LPF_PipeStdoutToTaskList. Valores são obtidos do VSTASKCATEGORY enumeração.
nTaskItemBitmap
Type: System.UInt32[in] Bitmap do item de tarefa se lpf for definido como LPF_PipeStdoutToTaskList for especificado. Valores são obtidos do _vstaskbitmap enumeração.
pszTaskListSubcategory
Type: System.String[in] Especifica uma nova subcategoria de lista de tarefas a ser criado se lpf for definido como LPF_PipeStdoutToTaskList for especificado. Nova subcategoria é usada para classificação e agrupamento no painel de tarefas.
pVsLaunchPadEvents
Type: Microsoft.VisualStudio.Shell.Interop.IVsLaunchPadEvents[in] Ponteiro para o IVsLaunchPadEvents interface.
pbstrOutput
Type: System.String[][out] true Se toda a saída gerada. Pode ser null.
Valor de retorno
Type: System.Int32
Se o método for bem-sucedido, ele retornará S_OK. Se ele falhar, ele retorna um código de erro.
Comentários
COM assinatura
De vsshell.idl:
HRESULT IVsLaunchPad::ExecBatchScript(
[in] LPCOLESTR pszBatchFileContents,
[in] LPCOLESTR pszWorkingDir,
[in] LAUNCHPAD_FLAGS lpf,
[in] IVsOutputWindowPane *pOutputWindowPane,
[in] ULONG nTaskItemCategory,
[in] ULONG nTaskItemBitmap,
[in] LPCOLESTR pszTaskListSubcategory,
[in] IVsLaunchPadEvents *pVsLaunchPadEvents,
[out] BSTR *pbstrOutput
);
Consulte também
Interface IVsLaunchPad
Namespace Microsoft.VisualStudio.Shell.Interop
Retornar ao topo