IVsDebugger.ParseFileRedirection 方法
分析在参数字符串包含的命令行,并返回参数和处理对所有重定向的输出。
命名空间: Microsoft.VisualStudio.Shell.Interop
程序集: Microsoft.VisualStudio.Shell.Interop(在 Microsoft.VisualStudio.Shell.Interop.dll 中)
语法
声明
Function ParseFileRedirection ( _
pszArgs As String, _
<OutAttribute> ByRef pbstrArgsProcessed As String, _
<OutAttribute> ByRef phStdInput As IntPtr, _
<OutAttribute> ByRef phStdOutput As IntPtr, _
<OutAttribute> ByRef phStdError As IntPtr _
) As Integer
int ParseFileRedirection(
string pszArgs,
out string pbstrArgsProcessed,
out IntPtr phStdInput,
out IntPtr phStdOutput,
out IntPtr phStdError
)
参数
- pszArgs
类型:System.String
[in] 包含命令行的字符串分析。
- pbstrArgsProcessed
类型:System.String%
[out] 与已去掉的文件方向的命令行。
- phStdInput
类型:System.IntPtr%
[out] 对于标准输入文件的句柄,考虑重定向。
- phStdOutput
类型:System.IntPtr%
[out] 到标准输出文件的句柄,考虑重定向。
- phStdError
类型:System.IntPtr%
[out] 对标准错误文件的句柄,考虑重定向。
返回值
类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 vsshell.idl:
HRESULT IVsDebugger::ParseFileRedirection(
[in] LPOLESTR pszArgs,
[out] BSTR *pbstrArgsProcessed,
[out] HANDLE *phStdInput,
[out] HANDLE *phStdOutput,
[out] HANDLE *phStdError
);
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。