FolderNode.SetEditLabel Method (String)

Sets the editable name of the folder to the specified name.

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

Syntax

'宣言
Public Overrides Function SetEditLabel ( _
    label As String _
) As Integer
'使用
Dim instance As FolderNode
Dim label As String
Dim returnValue As Integer

returnValue = instance.SetEditLabel(label)
public override int SetEditLabel(
    string label
)
public:
virtual int SetEditLabel(
    String^ label
) override
public override function SetEditLabel(
    label : String
) : int

Parameters

Return Value

Type: System.Int32

Always returns S_OK. If there are errors, an exception will be thrown.

Exceptions

Exception Condition
[System.InvalidOperationException]

A folder of the same name already exists on disk.

-or-

An exception was thrown during the renaming process.

Permissions

See Also

Reference

FolderNode Class

FolderNode Members

SetEditLabel Overload

Microsoft.VisualStudio.Package Namespace