OAProjectItem<T>.Open Method

Opens the project item in the specified view.

Namespace:  Microsoft.VisualStudio.Package.Automation
Assembly:  MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)

Syntax

'宣言
Public Overridable Function Open ( _
    ViewKind As String _
) As Window
'使用
Dim instance As OAProjectItem
Dim ViewKind As String
Dim returnValue As Window

returnValue = instance.Open(ViewKind)
public virtual Window Open(
    string ViewKind
)
public:
virtual Window^ Open(
    String^ ViewKind
)
public function Open(
    ViewKind : String
) : Window

Parameters

  • ViewKind
    Type: System.String

    The name of the type of view in which to open the item.

Return Value

Type: Window

When implemented in a derived class, the Window in which the item was opened.

Implements

ProjectItemOpen(String)

Remarks

By default throws a NotImplementedException, since the correct type of window for the specific item is not known.

Permissions

See Also

Reference

OAProjectItem<T> Class

OAProjectItem<T> Members

Microsoft.VisualStudio.Package.Automation Namespace