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.Int32A numerical identifier for the node.
logicalView
Type: System.GuidA 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
- 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.