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
label
Type: System.StringThe name to set.
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
- 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.