HierarchyNode.SetEditLabel Method (String, String)

Sets a caption value for the editable node.

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

Syntax

'宣言
Protected Friend Overridable Function SetEditLabel ( _
    label As String, _
    strRelPath As String _
) As Integer
'使用
Dim label As String
Dim strRelPath As String
Dim returnValue As Integer

returnValue = Me.SetEditLabel(label, _
    strRelPath)
protected internal virtual int SetEditLabel(
    string label,
    string strRelPath
)
protected public:
virtual int SetEditLabel(
    String^ label, 
    String^ strRelPath
)
protected internal function SetEditLabel(
    label : String, 
    strRelPath : String
) : int

Parameters

Return Value

Type: System.Int32

Implementations should return S_OK if the rename succeeded, or the appropriate error code if it did not.

Remarks

By default, throws [System.NotImplementedException]. An example of an implementation is [M:Microsoft.VisualStudio.Package.FileNode.SetEditLabel((string label, string strRelPath)].

Permissions

See Also

Reference

HierarchyNode Class

HierarchyNode Members

SetEditLabel Overload

Microsoft.VisualStudio.Package Namespace