Windows 7 Development: Shell Library

Source: Internet
Author: User

Task 5– Add Savefolder, Navpanepinnedstate, Icon, and FolderType command

These three commands share common behavior. First, users can use these commands to query the current state of the library simply by providing the name of the library. Second, to implement these commands, the Windows API exposes these as attributes in Shelllibrary.

C#

//Summary:
//By default, which is the the the the the the the the the the the the "the" location added to the library.
//The Defaul   T save folder is both the default folder where files can be
//saved, and also where the library XML file would be Saved, if no other
//path's specified
public string Defaultsavefolder {get; set;}

Public iconreference IconResourceId {get; set;}

//Summary:
//Whether The library'll be is pinned to the Explorer navigation Pane
public bool Ispin Nedtonavigationpane {get; set;}

//Summary:
//One of predefined Library types
//
//Exceptions:
//System.Runtime.Interop Services.comexception:
//would throw if no Library Type is set
public libraryfoldertype librarytype {get; set ;
Visual Basic
' Summary:
' By default, which is the ' the ' the ' the ' location added to the library.
' The default Save folder is both the default folder where files can be
' Saved, and also where the library XML file'll be saved, if no other
' path is specified
public prope     Rty Defaultsavefolder () as String

Public Property IconResourceId () as Iconreference

' Summary:
' Whether The library would be pinned to the Explorer navigation Pane
Public Property Ispinnedtonavigationpane () as Boo Lean

' Summary:
' One of predefined Library types
'
' Exceptions:
' System.Runtime.InteropS Ervices. COMException:
' would throw if no Library Type is set
Public property Librarytype () as Libraryfoldertype

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.