共用方式為


IVsDataViewDocumentProvider.Open 方法

當由類別實作時,會在指定的邏輯檢視中指定的檔案。 文件可能會填入現有資料,而且可以隱藏。

命名空間:  Microsoft.VisualStudio.Data.Services.SupportEntities
組件:  Microsoft.VisualStudio.Data.Services (在 Microsoft.VisualStudio.Data.Services.dll 中)

語法

'宣告
Function Open ( _
    itemId As Integer, _
    logicalView As Guid, _
    existingDocumentData As Object, _
    doNotShowWindow As Boolean _
) As IVsWindowFrame
IVsWindowFrame Open(
    int itemId,
    Guid logicalView,
    Object existingDocumentData,
    bool doNotShowWindow
)
IVsWindowFrame^ Open(
    int itemId, 
    Guid logicalView, 
    Object^ existingDocumentData, 
    bool doNotShowWindow
)
abstract Open : 
        itemId:int * 
        logicalView:Guid * 
        existingDocumentData:Object * 
        doNotShowWindow:bool -> IVsWindowFrame
function Open(
    itemId : int, 
    logicalView : Guid, 
    existingDocumentData : Object, 
    doNotShowWindow : boolean
) : IVsWindowFrame

參數

  • itemId
    類型:Int32

    節點的數值識別項在資料檢視。

  • logicalView
    類型:Guid

    一個邏輯檢視的唯一識別項。

  • existingDocumentData
    類型:Object

    在文件中包含的任何現有資料。

  • doNotShowWindow
    類型:Boolean

    指定是否 Boolean 會隱藏文件視窗 (true) (false)。

傳回值

類型:IVsWindowFrame
表示開啟的文件視窗的 IVsWindowFrame 物件。

.NET Framework 安全性

請參閱

參考

IVsDataViewDocumentProvider 介面

Microsoft.VisualStudio.Data.Services.SupportEntities 命名空間