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。