语言

DesignerCommandSet.GetCommands(String) 方法

定义

返回命令对象的集合。

public:
 virtual System::Collections::ICollection ^ GetCommands(System::String ^ name);
public virtual System.Collections.ICollection GetCommands(string name);
public virtual System.Collections.ICollection? GetCommands(string name);
abstract member GetCommands : string -> System.Collections.ICollection
override this.GetCommands : string -> System.Collections.ICollection
Public Overridable Function GetCommands (name As String) As ICollection

参数

name
String

要返回的集合的类型,指示一个或一个 DesignerActionListCollectionDesignerVerbCollection。

返回

一个集合,包含指定类型的命令对象或 DesignerActionListDesignerVerb 命令对象的集合。 基本实现始终返回 null。

注解

尽管基本实现始终返回 null,但程序员提供的重写版本应返回由 name程序员描述的类型的命令对象的集合。 基实现 Verbs 和 ActionLists 属性指定此参数的以下值和含义。

String 含义
“ActionLists” 返回与组件关联的所有智能标记的集合。
“Verbs” 返回与组件关联的所有设计器谓词的集合。

适用于

另请参阅