Método IVsLaunchPad.ExecBatchScript (String, String, UInt32, IVsOutputWindowPane, UInt32, UInt32, String, IVsLaunchPadEvents, String )

 

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.

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

  • 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