EditorFactoryBase.IVsEditorFactory.CreateEditorInstance 메서드
The interop provider.
네임스페이스: Microsoft.SqlServer.Management.UI.VSIntegration.Editors
어셈블리: SQLEditors(SQLEditors.dll)
구문
‘선언
Private Function CreateEditorInstance ( _
createFlags As UInteger, _
moniker As String, _
physicalView As String, _
hierarchy As IVsHierarchy, _
itemId As UInteger, _
existingDocData As IntPtr, _
<OutAttribute> ByRef docViewIntPtr As IntPtr, _
<OutAttribute> ByRef docDataIntPtr As IntPtr, _
<OutAttribute> ByRef caption As String, _
<OutAttribute> ByRef cmdUIGuid As Guid, _
<OutAttribute> ByRef result As Integer _
) As Integer Implements IVsEditorFactory.CreateEditorInstance
‘사용 방법
Dim instance As EditorFactoryBase
Dim createFlags As UInteger
Dim moniker As String
Dim physicalView As String
Dim hierarchy As IVsHierarchy
Dim itemId As UInteger
Dim existingDocData As IntPtr
Dim docViewIntPtr As IntPtr
Dim docDataIntPtr As IntPtr
Dim caption As String
Dim cmdUIGuid As Guid
Dim result As Integer
Dim returnValue As Integer
returnValue = CType(instance, IVsEditorFactory).CreateEditorInstance(createFlags, _
moniker, physicalView, hierarchy, _
itemId, existingDocData, docViewIntPtr, _
docDataIntPtr, caption, cmdUIGuid, _
result)
int IVsEditorFactory.CreateEditorInstance(
uint createFlags,
string moniker,
string physicalView,
IVsHierarchy hierarchy,
uint itemId,
IntPtr existingDocData,
out IntPtr docViewIntPtr,
out IntPtr docDataIntPtr,
out string caption,
out Guid cmdUIGuid,
out int result
)
private:
virtual int CreateEditorInstance(
unsigned int createFlags,
String^ moniker,
String^ physicalView,
IVsHierarchy^ hierarchy,
unsigned int itemId,
IntPtr existingDocData,
[OutAttribute] IntPtr% docViewIntPtr,
[OutAttribute] IntPtr% docDataIntPtr,
[OutAttribute] String^% caption,
[OutAttribute] Guid% cmdUIGuid,
[OutAttribute] int% result
) sealed = IVsEditorFactory::CreateEditorInstance
private abstract CreateEditorInstance :
createFlags:uint32 *
moniker:string *
physicalView:string *
hierarchy:IVsHierarchy *
itemId:uint32 *
existingDocData:IntPtr *
docViewIntPtr:IntPtr byref *
docDataIntPtr:IntPtr byref *
caption:string byref *
cmdUIGuid:Guid byref *
result:int byref -> int
private override CreateEditorInstance :
createFlags:uint32 *
moniker:string *
physicalView:string *
hierarchy:IVsHierarchy *
itemId:uint32 *
existingDocData:IntPtr *
docViewIntPtr:IntPtr byref *
docDataIntPtr:IntPtr byref *
caption:string byref *
cmdUIGuid:Guid byref *
result:int byref -> int
JScript는 명시적 인터페이스 구현의 사용을 지원하지만 새로운 명시적 인터페이스 구현의 선언은 지원하지 않습니다.
매개 변수
- createFlags
유형: System.UInt32
Integer flag value.
- moniker
유형: System.String
A string value that specifies the moniker.
- physicalView
유형: System.String
A string value that specifies the view.
- hierarchy
유형: IVsHierarchy
A IVsHierarchy object.
- itemId
유형: System.UInt32
Integer value of the item ID.
- existingDocData
유형: System.IntPtr
A IntPtr.
- docViewIntPtr
유형: System.IntPtr%
A pointer to a IntPtr.
- docDataIntPtr
유형: System.IntPtr%
A pointer to a IntPtr.
- caption
유형: System.String%
A pointer to a string value that contains the caption.
- cmdUIGuid
유형: System.Guid%
A pointer to Guid of UI.
- result
유형: System.Int32%
Pointer to an integer that indicates the result.
반환 값
유형: System.Int32
A defined integer value, such as S_OK.
구현
IVsEditorFactoryCreateEditorInstance(UInt32, String, String, IVsHierarchy, UInt32, IntPtr, IntPtr, IntPtr, String, Guid, Int32)
참고 항목
참조
Microsoft.SqlServer.Management.UI.VSIntegration.Editors 네임스페이스