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
label
Type: System.StringA caption value.
strRelPath
Type: System.StringRelative node path.
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
- 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.