获取或设置要对其引发指定命令的元素。
命名空间: Microsoft.Windows.Shell
程序集: Microsoft.Windows.Shell(在 Microsoft.Windows.Shell.dll 中)
语法
声明
Public Property CommandTarget As IInputElement
Get
Set
public IInputElement CommandTarget { get; set; }
public:
virtual property IInputElement^ CommandTarget {
IInputElement^ get () sealed;
void set (IInputElement^ value) sealed;
}
abstract CommandTarget : IInputElement with get, set
override CommandTarget : IInputElement with get, set
final function get CommandTarget () : IInputElement
final function set CommandTarget (value : IInputElement)
属性值
类型:System.Windows.IInputElement
在其上引发指定命令的元素。默认值为 nullnull 引用(在 Visual Basic 中为 Nothing)。
实现
备注
CommandTarget 属性提供了对已在应用程序中定义的元素的引用。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。