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

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

Deletes a file in a virtual file system.

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

public void DeleteFile(
	string virtualPath
)

Parameters

virtualPath
Type: SystemString
The virtual path.

Implements

IWritableVirtualPathProviderDeleteFile(String)
Exceptions

ExceptionCondition
IOExceptionThe file specified by virtualPath is read-only.
FileNotFoundException
UnauthorizedAccessExceptionThe caller does not have the required permission.
ArgumentExceptionvirtualPath is a zero-length string, contains only white space, or contains one or more invalid characters.
ArgumentNullExceptionvirtualPath is null
NotSupportedExceptionThe operation is not supported.
See Also

Reference