Renames the file on disk. Should be overridden for files that are not saved to disk.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Protected Overridable Sub RenameInStorage ( _
oldName As String, _
newName As String _
)
'使用
Dim oldName As String
Dim newName As String
Me.RenameInStorage(oldName, newName)
protected virtual void RenameInStorage(
string oldName,
string newName
)
protected:
virtual void RenameInStorage(
String^ oldName,
String^ newName
)
protected function RenameInStorage(
oldName : String,
newName : String
)
Parameters
oldName
Type: System.StringThe original file name.
newName
Type: System.StringThe new name.
Remarks
Should be overridden for files that are not saved to disk.
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.