Namespace: Microsoft.VisualStudio.TestTools.Vsip
Assembly: Microsoft.VisualStudio.QualityTools.Vsip (in Microsoft.VisualStudio.QualityTools.Vsip.dll)
Syntax
'宣言
Private Function CreateEditorInstance ( _
createDocFlag As UInteger, _
monikerDocument As String, _
physicalView As String, _
hierarchy As IVsHierarchy, _
itemId As UInteger, _
existingDocData As IntPtr, _
<OutAttribute> ByRef docView As IntPtr, _
<OutAttribute> ByRef docData As IntPtr, _
<OutAttribute> ByRef editorCaption As String, _
<OutAttribute> ByRef guidCmdUI As Guid, _
<OutAttribute> ByRef canceled As Integer _
) As Integer Implements IVsEditorFactory.CreateEditorInstance
'使用
Dim instance As EditorFactory
Dim createDocFlag As UInteger
Dim monikerDocument As String
Dim physicalView As String
Dim hierarchy As IVsHierarchy
Dim itemId As UInteger
Dim existingDocData As IntPtr
Dim docView As IntPtr
Dim docData As IntPtr
Dim editorCaption As String
Dim guidCmdUI As Guid
Dim canceled As Integer
Dim returnValue As Integer
returnValue = CType(instance, IVsEditorFactory).CreateEditorInstance(createDocFlag, _
monikerDocument, physicalView, hierarchy, _
itemId, existingDocData, docView, _
docData, editorCaption, guidCmdUI, _
canceled)
int IVsEditorFactory.CreateEditorInstance(
uint createDocFlag,
string monikerDocument,
string physicalView,
IVsHierarchy hierarchy,
uint itemId,
IntPtr existingDocData,
out IntPtr docView,
out IntPtr docData,
out string editorCaption,
out Guid guidCmdUI,
out int canceled
)
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
JScript does not support explicit interface implementations.
Parameters
- createDocFlag
Type: System.UInt32
- monikerDocument
Type: System.String
- physicalView
Type: System.String
- hierarchy
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchy
- itemId
Type: System.UInt32
- existingDocData
Type: System.IntPtr
- docView
Type: System.IntPtr%
- docData
Type: System.IntPtr%
- editorCaption
Type: System.String%
- guidCmdUI
Type: System.Guid%
- canceled
Type: System.Int32%
Return Value
Type: System.Int32
Implements
Permissions
- 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.