OAProjectItem.get_IsOpen Method
Returns whether the project item is open in a particular view type.
Namespace: Microsoft.VisualStudio.Data.Schema.Project.Automation
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)
Syntax
'Declaration
Public Overridable Function get_IsOpen ( _
viewKind As String _
) As Boolean
'Usage
Dim instance As OAProjectItem
Dim viewKind As String
Dim returnValue As Boolean
returnValue = instance.get_IsOpen(viewKind)
public virtual bool get_IsOpen(
string viewKind
)
public:
virtual bool get_IsOpen(
String^ viewKind
)
public function get_IsOpen(
viewKind : String
) : boolean
abstract get_IsOpen :
viewKind:string -> bool
override get_IsOpen :
viewKind:string -> bool
Parameters
- viewKind
Type: System.String
A Constants value indicating the type of view to check
Return Value
Type: System.Boolean
Remarks
Implemented by subclasses.
Examples
if(projectItem.get_IsOpen(EnvDTE.Constants.vsViewKindPrimary) == false)
{
// Perform some action.
}
.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
Microsoft.VisualStudio.Data.Schema.Project.Automation Namespace