Click here to Skip to main content
15,886,823 members
Articles / Desktop Programming / Windows Forms

Task Manager

Rate me:
Please Sign up or sign in to vote.
4.90/5 (105 votes)
1 Jan 2010CPOL4 min read 204K   21K   229  
Manage your daily tasks and To-Do list using some exciting features of Windows 7.
// Copyright (c) Microsoft Corporation.  All rights reserved.

using System;
using System.Collections.Generic;
using System.IO;

namespace Microsoft.WindowsAPICodePack.Shell
{
    /// <summary>
    /// Represents a registered or known folder in the system.
    /// </summary>
    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix", Justification="This will complicate the class hierarchy and naming convention used in the Shell area")]
    public interface IKnownFolder : IDisposable, IEnumerable<ShellObject>
    {
        /// <summary>
        /// Gets the path for this known folder.
        /// </summary>
        string Path
        {
            get;
        }

        /// <summary>
        /// Gets the category designation for this known folder.
        /// </summary>
        FolderCategory Category
        {
            get;
        }

        /// <summary>
        /// Gets this known folder's canonical name.
        /// </summary>
        string CanonicalName
        {
            get;
        }

        /// <summary>
        /// Gets this known folder's description.
        /// </summary>
        string Description
        {
            get;
        }

        /// <summary>
        /// Gets the unique identifier for this known folder's parent folder.
        /// </summary>
        Guid ParentId
        {
            get;
        }

        /// <summary>
        /// Gets this known folder's relative path.
        /// </summary>
        string RelativePath
        {
            get;
        }

        /// <summary>
        /// Gets this known folder's parsing name.
        /// </summary>
        string ParsingName
        {
            get;
        }

        /// <summary>
        /// Gets this known folder's tool tip text.
        /// </summary>
        string Tooltip
        {
            get;
        }

        /// <summary>
        /// Gets the resource identifier for this 
        /// known folder's tool tip text.
        /// </summary>
        string TooltipResourceId
        {
            get;
        }

        /// <summary>
        /// Gets this known folder's localized name.
        /// </summary>
        string LocalizedName
        {
            get;
        }

        /// <summary>
        /// Gets the resource identifier for this 
        /// known folder's localized name.
        /// </summary>
        string LocalizedNameResourceId
        {
            get;
        }

        /// <summary>
        /// Gets this known folder's security attributes.
        /// </summary>
        string Security
        {
            get;
        }

        /// <summary>
        /// Gets this known folder's file attributes, 
        /// such as "read-only".
        /// </summary>
        FileAttributes FileAttributes
        {
            get;
        }

        /// <summary>
        /// Gets an value that describes this known folder's behaviors.
        /// </summary>
        DefinitionOptions DefinitionOptions
        {
            get;
        }

        /// <summary>
        /// Gets the unique identifier for this known folder's type.
        /// </summary>
        Guid FolderTypeId
        {
            get;
        }

        /// <summary>
        /// Gets a string representation of this known folder's type.
        /// </summary>
        string FolderType
        {
            get;
        }
        
        /// <summary>
        /// Gets the unique identifier for this known folder.
        /// </summary>
        Guid FolderId
        {
            get;
        }

        /// <summary>
        /// Gets a value that indicates whether this known folder's path exists on the computer. 
        /// </summary>
        /// <remarks>If this property value is <b>false</b>, 
        /// the folder might be a virtual folder (<see cref="Category"/> property will
        /// be <see cref="FolderCategory.Virtual"/> for virtual folders)</remarks>
        bool PathExists
        {
            get;
        }

        /// <summary>
        /// Gets a value that states whether this known folder 
        /// can have its path set to a new value, 
        /// including any restrictions on the redirection.
        /// </summary>
        RedirectionCapabilities Redirection
        {
            get;
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Chief Technology Officer
Pakistan Pakistan
Passion and positive dedication is essential part of success. I believe on hardworking and sharing knowledge with others. I always try to be a better than I am and think positive for positive result.

My Blogs

My Linked-In Profile

Comments and Discussions