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