Creates a new folder in the Solution Explorer.
Namespace: Microsoft.VisualStudio.Package.Automation
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Overridable Function AddFolder ( _
name As String, _
kind As String _
) As ProjectItem
'使用
Dim instance As OANavigableProjectItems
Dim name As String
Dim kind As String
Dim returnValue As ProjectItem
returnValue = instance.AddFolder(name, _
kind)
public virtual ProjectItem AddFolder(
string name,
string kind
)
public:
virtual ProjectItem^ AddFolder(
String^ name,
String^ kind
)
public function AddFolder(
name : String,
kind : String
) : ProjectItem
Parameters
name
Type: System.StringThe name of the folder.
kind
Type: System.StringThe kind of folder. The available values are based on the ConstantsvsProjectItemsKindx and vsProjectItemKindx.
Return Value
Type: ProjectItem
When implemented by derived classes, the newly-created ProjectItem.
Implements
ProjectItemsAddFolder(String, String)
Remarks
By default this method is not implemented and 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.