Share via


DataViewDocumentProvider.CanOpen Method

Indicates whether a document can be opened for the specified node in the data view and for the given logical view.

Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Public Overridable Function CanOpen ( _
    itemId As Integer, _
    logicalView As Guid _
) As Boolean
public virtual bool CanOpen(
    int itemId,
    Guid logicalView
)
public:
virtual bool CanOpen(
    int itemId, 
    Guid logicalView
)
abstract CanOpen : 
        itemId:int * 
        logicalView:Guid -> bool  
override CanOpen : 
        itemId:int * 
        logicalView:Guid -> bool
public function CanOpen(
    itemId : int, 
    logicalView : Guid
) : boolean

Parameters

  • itemId
    Type: System.Int32

    A numerical identifier for the node.

  • logicalView
    Type: System.Guid

    A unique identifier of a logical view.

Return Value

Type: System.Boolean
true if a document can be opened; otherwise, false.

Implements

IVsDataViewDocumentProvider.CanOpen(Int32, Guid)

Remarks

Notes to Inheritors

The derived class should override this method.

.NET Framework Security

See Also

Reference

DataViewDocumentProvider Class

Microsoft.VisualStudio.Data.Framework Namespace