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.

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.

pszWorkingDir
String

no Diretório de trabalho que é passado para CreateProcess pelo ambiente. Pode ser null.

lpf
UInt32

no Iniciar sinalizadores de preenchimento. Os valores são obtidos da _LAUNCHPAD_FLAGS enumeração.

pOutputWindowPane
IVsOutputWindowPane

no Ponteiro para a IVsOutputWindowPane interface criada pelo CreatePane(Guid, String, Int32, Int32) .

nTaskItemCategory
UInt32

no Categoria de item de tarefa, se lpf for definido como LPF_PipeStdoutToTaskList . Os valores são obtidos da VSTASKCATEGORY enumeração.

nTaskItemBitmap
UInt32

no Bitmap de item de tarefa se lpf estiver definido como LPF_PipeStdoutToTaskList especificado. Os valores são obtidos da _vstaskbitmap enumeração.

pszTaskListSubcategory
String

no Especifica uma nova subcategoria da lista de tarefas a ser criada se o lpf estiver definido como LPF_PipeStdoutToTaskList especificado. A nova subcategoria é usada para classificação e agrupamento no painel de tarefas.

pVsLaunchPadEvents
IVsLaunchPadEvents

no Ponteiro para a IVsLaunchPadEvents interface.

pbstrOutput
String[]

[fora] true se toda a saída tiver sido gerada. Pode ser null.

Retornos

Int32

Se o método for bem-sucedido, retornará S_OK. Se falhar, retornará um código de erro.

Comentários

Assinatura COM

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  
);  

Aplica-se a