IVsOutputWindow3.CreatePane2 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建具有指定内容类型和文本视图角色的 "输出" 窗口窗格。 有关内容类型和文本视图角色的详细信息,请参阅语言服务和编辑器扩展点。
public:
int CreatePane2(Guid % rguidPane, System::String ^ pszPaneName, int fInitVisible, int fClearWithSolution, System::String ^ lpszContentType, System::String ^ lpszTextViewRoles);
public int CreatePane2 (ref Guid rguidPane, string pszPaneName, int fInitVisible, int fClearWithSolution, string lpszContentType, string lpszTextViewRoles);
abstract member CreatePane2 : Guid * string * int * int * string * string -> int
Public Function CreatePane2 (ByRef rguidPane As Guid, pszPaneName As String, fInitVisible As Integer, fClearWithSolution As Integer, lpszContentType As String, lpszTextViewRoles As String) As Integer
参数
- rguidPane
- Guid
中要创建的窗格的 GUID。
- pszPaneName
- String
中窗格的名称。
- fInitVisible
- Int32
[in] true 如果窗格应可见,则为。
- fClearWithSolution
- Int32
[in] true 如果在关闭解决方案时应删除该窗格,则为。
- lpszContentType
- String
内容类型。
- lpszTextViewRoles
- String
文本视图角色。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。