EditorFactoryBase.IVsEditorFactory.CreateEditorInstance 方法

定义

互操作提供程序。

 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 的整数值。

existingDocData
IntPtr

nativeint

一个 IntPtr

docViewIntPtr
IntPtr

nativeint

一个指向 IntPtr 的指针。

docDataIntPtr
IntPtr

nativeint

一个指向 IntPtr 的指针。

caption
String

一个指向包含标题的字符串值的指针。

cmdUIGuid
Guid

一个指向 UI 的 Guid 的指针。

result
Int32

指向指示结果的整数的指针。

返回

定义的整数值,例如 S_OK

实现

适用于