When implemented by a class, 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.Services.SupportEntities
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Syntax
'Declaration
Function CanOpen ( _
itemId As Integer, _
logicalView As Guid _
) As Boolean
'Usage
Dim instance As IVsDataViewDocumentProvider
Dim itemId As Integer
Dim logicalView As Guid
Dim returnValue As Boolean
returnValue = instance.CanOpen(itemId, _
logicalView)
bool CanOpen(
int itemId,
Guid logicalView
)
bool CanOpen(
int itemId,
Guid logicalView
)
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.
.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.
See Also
Reference
IVsDataViewDocumentProvider Interface
IVsDataViewDocumentProvider Members
Microsoft.VisualStudio.Data.Services.SupportEntities Namespace