示例#1
0
 /// <summary>
 /// Gets the parent folder of a given file system resource.
 /// </summary>
 /// <param name="childFolderPath">The qualified name (<see cref="VirtualResourceInfo.FullName"/>)
 /// of an arbitrary folder that is used to resolve the parent folder.</param>
 /// <returns>The parent of the folder.</returns>
 /// <exception cref="ArgumentNullException">If <paramref name="childFolderPath"/>
 /// is a null reference.</exception>
 /// <exception cref="VirtualResourceNotFoundException">If the folder that is represented
 /// by <paramref name="childFolderPath"/> does not exist in the file system.</exception>
 /// <exception cref="ResourceAccessException">If the submitted child folder already
 /// represents the file system root.</exception>
 public override VirtualFolderInfo GetFolderParent(string childFolderPath)
 {
     return(SecureFunc(FileSystemTask.FolderParentRequest, () => OperationService.GetFolderParent(childFolderPath),
                       () =>
                       String.Format("Could not get meta data about parent folder of folder [{0}].", childFolderPath)));
 }