EditorFactoryBase.IVsEditorFactory.CreateEditorInstance 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
互操作提供商。
virtual int Microsoft.VisualStudio.Shell.Interop.IVsEditorFactory.CreateEditorInstance(System::UInt32 createFlags, System::String ^ moniker, System::String ^ physicalView, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ hierarchy, System::UInt32 itemId, IntPtr existingDocData, [Runtime::InteropServices::Out] IntPtr % docViewIntPtr, [Runtime::InteropServices::Out] IntPtr % docDataIntPtr, [Runtime::InteropServices::Out] System::String ^ % caption, [Runtime::InteropServices::Out] Guid % cmdUIGuid, [Runtime::InteropServices::Out] int % result) = Microsoft::VisualStudio::Shell::Interop::IVsEditorFactory::CreateEditorInstance;
int IVsEditorFactory.CreateEditorInstance(uint createFlags, string moniker, string physicalView, Microsoft.VisualStudio.Shell.Interop.IVsHierarchy hierarchy, uint itemId, IntPtr existingDocData, out IntPtr docViewIntPtr, out IntPtr docDataIntPtr, out string caption, out Guid cmdUIGuid, out int result);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsEditorFactory.CreateEditorInstance : uint32 * string * string * Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 * nativeint * nativeint * nativeint * string * Guid * int -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsEditorFactory.CreateEditorInstance : uint32 * string * string * Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * uint32 * nativeint * nativeint * nativeint * string * Guid * int -> int
Function CreateEditorInstance (createFlags As UInteger, moniker As String, physicalView As String, hierarchy As IVsHierarchy, itemId As UInteger, existingDocData As IntPtr, ByRef docViewIntPtr As IntPtr, ByRef docDataIntPtr As IntPtr, ByRef caption As String, ByRef cmdUIGuid As Guid, ByRef result As Integer) As Integer Implements IVsEditorFactory.CreateEditorInstance
参数
- createFlags
- UInt32
整数标志值。
- moniker
- String
一个字符串值,用来指定昵称。
- physicalView
- String
一个字符串值,指定视图。
- hierarchy
- IVsHierarchy
IVsHierarchy 对象。
- itemId
- UInt32
物品ID的整数值。
- caption
- String
指向包含说明的字符串值的指针。
- result
- Int32
指向一个整数,表示结果。
返回
一个定义的整数值,例如 S_OK。