CSAspNetVirtualPathProviderMoveFile Method Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Moves and/or renames a file in a virtual file system.

Namespace: ContentStudio.Site.Storage
Assembly: CS_SiteLib (in CS_SiteLib.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

public void MoveFile(
	string sourceVirtualPath,
	string destinationVirtualPath
)

Parameters

sourceVirtualPath
Type: SystemString
The virtual path.
destinationVirtualPath
Type: SystemString
The new name.

Implements

IWritableVirtualPathProviderMoveFile(String, String)
Exceptions

ExceptionCondition
IOException The sourceVirtualPath and destinationVirtualPath parameters refer to the same file.
-or-
destinationVirtualPath already exists.
-or-
an attempt was made to move a parent directory to one of its descendants.
FileNotFoundExceptionThe sourceVirtualPath was not found.
DirectoryNotFoundExceptionThe path specified in sourceVirtualPath or destinationVirtualPath is invalid.
UnauthorizedAccessExceptionThe caller does not have the required permission.
ArgumentExceptionsourceVirtualPath or destinationVirtualPath is a zero-length string, contains only white space, or contains one or more invalid characters.
ArgumentNullExceptionsourceVirtualPath or destinationVirtualPath is null
NotSupportedExceptionThe operation is not supported.
See Also

Reference