EditorFactory::IVsEditorFactory::CreateEditorInstance Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Used internally by the editor factory framework to initialize this EditorFactory object.
Namespace: Microsoft.VisualStudio.TestTools.Vsip
Assembly: Microsoft.VisualStudio.QualityTools.Vsip (in Microsoft.VisualStudio.QualityTools.Vsip.dll)
private: virtual int CreateEditorInstance( unsigned int createDocFlag, String^ monikerDocument, String^ physicalView, IVsHierarchy^ hierarchy, unsigned int itemId, IntPtr existingDocData, [OutAttribute] IntPtr% docView, [OutAttribute] IntPtr% docData, [OutAttribute] String^% editorCaption, [OutAttribute] Guid% guidCmdUI, [OutAttribute] int% canceled ) sealed = IVsEditorFactory::CreateEditorInstance
Parameters
- createDocFlag
- Type: System::UInt32
A uint value where zero equals false and 1 equals true.
- monikerDocument
- Type: System::String
A string that contains the identifier of the document in the project system. If the document is a file, it must be a file path, but it can be a reference to records in a database table. Cannot be nullptr or empty.
- physicalView
- Type: System::String
A string that contains the name of the physical view.
- hierarchy
- Type: Microsoft.VisualStudio.Shell.Interop::IVsHierarchy
An IVsHierarchy value.
- itemId
- Type: System::UInt32
A uint value that identifies this instance.
- existingDocData
- Type: System::IntPtr
An IntPtr value.
- docView
- Type: System::IntPtr%
An IntPtr value.
- docData
- Type: System::IntPtr%
An IntPtr value.
- editorCaption
- Type: System::String%
(Output) The editor caption.
- guidCmdUI
- Type: System::Guid%
(Output) The command GUID.
- canceled
- Type: System::Int32%
(Output) An int value that indicates whether the operation was canceled by the user.
Implements
IVsEditorFactory::CreateEditorInstance(UInt32, String, String, IVsHierarchy, UInt32, IntPtr, IntPtr%, IntPtr%, String%, Guid%, Int32%)This member is an explicit interface member implementation. It can be used only when the EditorFactory instance is cast to an IVsEditorFactory interface.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.