Click or drag to resize

ShellCommand Class

This class provides identifies shell context menu commands that are to be executed or that the user has chosen. A command is represented by a string or a ShellContextMenuCommand value - they are assignment compatible. A ShellCommand also has a property "Caption" that stores the localized caption of a menu item the user has chosen. It is however not possible to create a command from a caption.
Inheritance Hierarchy
SystemObject
  Jam.ShellShellCommand

Namespace:  Jam.Shell
Assembly:  ShellBrowser.Core (in ShellBrowser.Core.dll) Version: 6.3.1
Syntax
public class ShellCommand

The ShellCommand type exposes the following members.

Constructors
  NameDescription
Public methodShellCommand(String)
Constructor that creates an instance from a verb.
Public methodShellCommand(ShellContextMenuCommand)
Constructor that creates an instance from a verb.
Top
Properties
  NameDescription
Public propertyCaption
Gets the caption of the menu item.
Public propertyCommand
Gets the command.
Public propertyCommandId
Gets the Command Id.
Public propertyVerb
Gets the verb.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Overrides ObjectEquals(Object).)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Overrides ObjectGetHashCode.)
Public methodStatic memberIsCopy
Checks if the given command is the 'copy' shell command.
Public methodStatic memberIsCut
Checks if the given command is the 'cut' shell command.
Public methodStatic memberIsDefault
Checks if the given command is the default shell command.
Public methodStatic memberIsDelete
Checks if the given command is the 'delete' shell command.
Public methodStatic memberIsEmpty
Checks if the given command is the default shell command.
Public methodStatic memberIsEmptyBitBucket
Checks if the given command is the 'empty' shell command.
Public methodStatic memberIsExplore
Checks if the given command is the 'explore' shell command.
Public methodStatic memberIsLink
Checks if the given command is the 'link' shell command.
Public methodStatic memberIsOpen
Checks if the given command is the 'open' shell command.
Public methodStatic memberIsPaste
Checks if the given command is the 'paste' shell command.
Public methodStatic memberIsPinToHome
Checks if the given command is the 'PinToHome' shell command.
Public methodStatic memberIsProperties
Checks if the given command is the 'properties' shell command.
Public methodStatic memberIsRename
Checks if the given command is the 'rename' shell command.
Public methodStatic memberIsRunAs
Checks if the given command is the 'runas' shell command.
Public methodStatic memberIsUndelete
Checks if the given command is the 'undelete' shell command.
Public methodStatic memberIsUnpinFromHome
Checks if the given command is the 'UnpinFromHome' shell command.
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Top
Operators
Fields
  NameDescription
Public fieldStatic memberCopy
This is a constant string that represents the 'copy' shell command
Public fieldStatic memberCut
This is a constant string that represents the 'cut' shell command
Public fieldStatic memberDefault
This is a constant string that represents the default shell command
Public fieldStatic memberDelete
This is a constant string that represents the 'delete' shell command
Public fieldStatic memberEmptyBitBucket
This is a constant string that represents the 'empty' shell command
Public fieldStatic memberEmptyCommand
An empty command.
Public fieldStatic memberExplore
This is a constant string that represents the 'explore' shell command
Public fieldStatic memberLink
This is a constant string that represents the 'Link' shell command.
Public fieldStatic memberOpen
This is a constant string that represents the 'open' shell command
Public fieldStatic memberPaste
This is a constant string that represents the 'paste' shell command
Public fieldStatic memberPinToHome
This is a constant string that represents the 'Pin to home' shell command in Windows 10 and later.
Public fieldStatic memberProperties
This is a constant string that represents the 'properties' shell command
Public fieldStatic memberRename
This is a constant string that represents the 'rename' shell command
Public fieldStatic memberRunAs
This is a constant string that represents the 'runas' shell command
Public fieldStatic memberUndelete
This is a constant string that represents the 'undelete' shell command
Public fieldStatic memberUnpinFromHome
This is a constant string that represents the 'Unpin from home' shell command in Windows 10 and later.
Top
See Also