Share via


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描述的类型的命令对象的集合。 和 ActionLists 属性的Verbs基实现为此参数指定以下值和含义。

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

适用于

另请参阅