OANavigableProjectItems.AddFromFile Method

Adds a project item from a file that exists in a project directory structure.

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

Syntax

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

returnValue = instance.AddFromFile(fileName)
public virtual ProjectItem AddFromFile(
    string fileName
)
public:
virtual ProjectItem^ AddFromFile(
    String^ fileName
)
public function AddFromFile(
    fileName : String
) : ProjectItem

Parameters

Return Value

Type: ProjectItem

When implemented by derived classes, the newly-created ProjectItem.

Implements

ProjectItemsAddFromFile(String)

Remarks

By default this method is not implemented and throws a NotImplementedException.

Permissions

See Also

Reference

OANavigableProjectItems Class

OANavigableProjectItems Members

Microsoft.VisualStudio.Package.Automation Namespace