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

Definição

Cria um arquivo em lotes temporário a ser executado com saída canalizada para um painel de saída no IDE.Creates a temporary batch file to be executed with output piped to an output pane in the IDE.

public:
 int ExecBatchScript(System::String ^ pszBatchFileContents, System::String ^ pszWorkingDir, System::UInt32 lpf, Microsoft::VisualStudio::Shell::Interop::IVsOutputWindowPane ^ pOutputWindowPane, System::UInt32 nTaskItemCategory, System::UInt32 nTaskItemBitmap, System::String ^ pszTaskListSubcategory, Microsoft::VisualStudio::Shell::Interop::IVsLaunchPadEvents ^ pVsLaunchPadEvents, cli::array <System::String ^> ^ pbstrOutput);
public:
 int ExecBatchScript(Platform::String ^ pszBatchFileContents, Platform::String ^ pszWorkingDir, unsigned int lpf, Microsoft::VisualStudio::Shell::Interop::IVsOutputWindowPane ^ pOutputWindowPane, unsigned int nTaskItemCategory, unsigned int nTaskItemBitmap, Platform::String ^ pszTaskListSubcategory, Microsoft::VisualStudio::Shell::Interop::IVsLaunchPadEvents ^ pVsLaunchPadEvents, Platform::Array <Platform::String ^> ^ pbstrOutput);
int ExecBatchScript(std::wstring const & pszBatchFileContents, std::wstring const & pszWorkingDir, unsigned int lpf, Microsoft::VisualStudio::Shell::Interop::IVsOutputWindowPane const & pOutputWindowPane, unsigned int nTaskItemCategory, unsigned int nTaskItemBitmap, std::wstring const & pszTaskListSubcategory, Microsoft::VisualStudio::Shell::Interop::IVsLaunchPadEvents const & pVsLaunchPadEvents, std::Array <std::wstring const &> const & pbstrOutput);
public int ExecBatchScript (string pszBatchFileContents, string pszWorkingDir, uint lpf, Microsoft.VisualStudio.Shell.Interop.IVsOutputWindowPane pOutputWindowPane, uint nTaskItemCategory, uint nTaskItemBitmap, string pszTaskListSubcategory, Microsoft.VisualStudio.Shell.Interop.IVsLaunchPadEvents pVsLaunchPadEvents, string[] pbstrOutput);
abstract member ExecBatchScript : string * string * uint32 * Microsoft.VisualStudio.Shell.Interop.IVsOutputWindowPane * uint32 * uint32 * string * Microsoft.VisualStudio.Shell.Interop.IVsLaunchPadEvents * string[] -> int
Public 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
String

no Cadeia de caracteres que contém o texto a ser gravado no arquivo em lotes.[in] String containing the text to be written to the batch file.

pszWorkingDir
String

no Diretório de trabalho que é passado para CreateProcess pelo ambiente.[in] Working directory that is passed to CreateProcess by the environment. Pode ser null.Can be null.

lpf
UInt32

no Iniciar sinalizadores de preenchimento.[in] Launch pad flags. Os valores são obtidos da _LAUNCHPAD_FLAGS enumeração.Values are taken from the _LAUNCHPAD_FLAGS enumeration.

pOutputWindowPane
IVsOutputWindowPane

no Ponteiro para a IVsOutputWindowPane interface criada pelo CreatePane(Guid, String, Int32, Int32) .[in] Pointer to the IVsOutputWindowPane interface created by CreatePane(Guid, String, Int32, Int32).

nTaskItemCategory
UInt32

no Categoria de item de tarefa, se lpf for definido como LPF_PipeStdoutToTaskList .[in] Task item category, if lpf is set to LPF_PipeStdoutToTaskList. Os valores são obtidos da VSTASKCATEGORY enumeração.Values are taken from the VSTASKCATEGORY enumeration.

nTaskItemBitmap
UInt32

no Bitmap de item de tarefa se lpf estiver definido como LPF_PipeStdoutToTaskList especificado.[in] Task item bitmap if lpf is set to LPF_PipeStdoutToTaskList is specified. Os valores são obtidos da _vstaskbitmap enumeração.Values are taken from the _vstaskbitmap enumeration.

pszTaskListSubcategory
String

no Especifica uma nova subcategoria da lista de tarefas a ser criada se o lpf estiver definido como LPF_PipeStdoutToTaskList especificado.[in] Specifies a new task list subcategory to be created if lpf is set to LPF_PipeStdoutToTaskList is specified. A nova subcategoria é usada para classificação e agrupamento no painel de tarefas.The new subcategory is used for sorting and grouping in the task pane.

pVsLaunchPadEvents
IVsLaunchPadEvents

no Ponteiro para a IVsLaunchPadEvents interface.[in] Pointer to the IVsLaunchPadEvents interface.

pbstrOutput
String[]

[fora] true se toda a saída tiver sido gerada.[out] true if all output was generated. Pode ser null.Can be null.

Retornos

Int32

Se o método for bem-sucedido, retornará S_OK.If the method succeeds, it returns S_OK. Se falhar, retornará um código de erro.If it fails, it returns an error code.

Comentários

Assinatura COMCOM Signature

De VSShell. idl:From 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  
);  

Aplica-se a