Open this page in the API Guide

ContextMenuCommand.invalidReason Property

Gets or sets the value to describe why this command is marked as invalid.