OANavigableProjectItems.AddFromDirectory Method

Adds one or more ProjectItem objects from a directory to the ProjectItems collection.

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

Syntax

'宣言
Public Overridable Function AddFromDirectory ( _
    directory As String _
) As ProjectItem
'使用
Dim instance As OANavigableProjectItems
Dim directory As String
Dim returnValue As ProjectItem

returnValue = instance.AddFromDirectory(directory)
public virtual ProjectItem AddFromDirectory(
    string directory
)
public:
virtual ProjectItem^ AddFromDirectory(
    String^ directory
)
public function AddFromDirectory(
    directory : String
) : ProjectItem

Parameters

  • directory
    Type: System.String

    The path of the directory containing the project items.

Return Value

Type: ProjectItem

The newly-created ProjectItem.

Implements

ProjectItemsAddFromDirectory(String)

Remarks

By default this method throws a NotImplementedException.

Permissions

See Also

Reference

OANavigableProjectItems Class

OANavigableProjectItems Members

Microsoft.VisualStudio.Package.Automation Namespace