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

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

Sets meta data such as LastAccessTime or an attribute on a file in a virtual file system.

Namespace: ContentStudio.Storage
Assembly: CS5Interfaces (in CS5Interfaces.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

void SetFileMetadata(
	string virtualPath,
	IDictionary<string, Object> data
)

Parameters

virtualPath
Type: SystemString
The virtual path.
data
Type: System.Collections.GenericIDictionaryString, Object
The data to set.
Exceptions

ExceptionCondition
ArgumentExceptionvirtualPath is a zero-length string, contains only white space, or contains one or more invalid characters.
ArgumentNullExceptionvirtualPath is null
UnauthorizedAccessExceptionThe caller does not have the required permission.
FileNotFoundExceptionThe virtual file cannot be found.
NotSupportedExceptionThe operation is not supported or the specific meta data property is not supported.
Remarks

The data to set is provided by a IDictionaryTKey, TValue where each meta data property is identified by the Key.
See Also

Reference