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: 7.2
Syntax
public class ShellCommand

The ShellCommand type exposes the following members.

Constructors
 NameDescription
Public methodShellCommand(ShellContextMenuCommand)Constructor that creates an instance from a verb.
Public methodShellCommand(String)Constructor that creates an instance from a verb.
Top
Properties
 NameDescription
Public propertyCaptionGets the caption of the menu item.
Public propertyCommandGets the command.
Public propertyCommandIdGets the Command Id.
Public propertyVerbGets the verb.
Top
Methods
 NameDescription
Public methodEquals Determines whether the specified Object is equal to the current Object.
(Overrides ObjectEquals(Object))
Public methodGetHashCodeServes as a hash function for a particular type.
(Overrides ObjectGetHashCode)
Public methodStatic memberIsCopyChecks if the given command is the 'copy' shell command.
Public methodStatic memberIsCutChecks if the given command is the 'cut' shell command.
Public methodStatic memberIsDefaultChecks if the given command is the default shell command.
Public methodStatic memberIsDeleteChecks if the given command is the 'delete' shell command.
Public methodStatic memberIsEmptyChecks if the given command is the default shell command.
Public methodStatic memberIsEmptyBitBucketChecks if the given command is the 'empty' shell command.
Public methodStatic memberIsExploreChecks if the given command is the 'explore' shell command.
Public methodStatic memberIsLinkChecks if the given command is the 'link' shell command.
Public methodStatic memberIsOpenChecks if the given command is the 'open' shell command.
Public methodStatic memberIsPasteChecks if the given command is the 'paste' shell command.
Public methodStatic memberIsPinToHomeChecks if the given command is the 'PinToHome' shell command.
Public methodStatic memberIsPropertiesChecks if the given command is the 'properties' shell command.
Public methodStatic memberIsRenameChecks if the given command is the 'rename' shell command.
Public methodStatic memberIsRunAsChecks if the given command is the 'runas' shell command.
Public methodStatic memberIsUndeleteChecks if the given command is the 'undelete' shell command.
Public methodStatic memberIsUnpinFromHomeChecks if the given command is the 'UnpinFromHome' shell command.
Public methodToStringReturns a string that represents the current object.
(Overrides ObjectToString)
Top
Operators
 NameDescription
Public operatorStatic memberEquality(ShellCommand, ShellCommand)Equality operator.
Public operatorStatic member(ShellCommand to ShellContextMenuCommand) Implicit cast that converts the given ShellCommand to a ShellContextMenuCommand.
Public operatorStatic member(ShellCommand to String)Implicit cast that converts the given ShellCommand to a string.
Public operatorStatic member(ShellContextMenuCommand to ShellCommand) Implicit cast that converts the given ShellContextMenuCommand to a ShellCommand.
Public operatorStatic member(String to ShellCommand)Implicit cast that converts the given string representing a verb to a ShellCommand.
Public operatorStatic memberInequality(ShellCommand, ShellCommand)Inequality operator.
Top
Fields
 NameDescription
Public fieldStatic memberCopyThis is a constant string that represents the 'copy' shell command
Public fieldStatic memberCutThis is a constant string that represents the 'cut' shell command
Public fieldStatic memberDefaultThis is a constant string that represents the default shell command
Public fieldStatic memberDeleteThis is a constant string that represents the 'delete' shell command
Public fieldStatic memberEmptyBitBucketThis is a constant string that represents the 'empty' shell command
Public fieldStatic memberEmptyCommandAn empty command.
Public fieldStatic memberExploreThis is a constant string that represents the 'explore' shell command
Public fieldStatic memberGoUpThis is a constant string that represents the 'Go up' command that can be used in ShellBrowser.
Public fieldStatic memberLinkThis is a constant string that represents the 'Link' shell command.
Public fieldStatic memberOpenThis is a constant string that represents the 'open' shell command
Public fieldStatic memberOpenWithThis is a constant string that represents the 'openas' shell command
Public fieldStatic memberPasteThis is a constant string that represents the 'paste' shell command
Public fieldStatic memberPinToHomeThis is a constant string that represents the 'Pin to home' shell command in Windows 10 and later.
Public fieldStatic memberPropertiesThis is a constant string that represents the 'properties' shell command
Public fieldStatic memberRenameThis is a constant string that represents the 'rename' shell command
Public fieldStatic memberRunAsThis is a constant string that represents the 'runas' shell command
Public fieldStatic memberUndeleteThis is a constant string that represents the 'undelete' shell command
Public fieldStatic memberUnpinFromHomeThis is a constant string that represents the 'Unpin from home' shell command in Windows 10 and later.
Top
See Also