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.StringThe 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
- 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.