_Categories.Remove(Object) 方法

定义

从集合中删除对象。

public:
 void Remove(System::Object ^ Index);
public void Remove (object Index);
Public Sub Remove (Index As Object)

参数

Index
Object

C# 中的 整数 (int ) 表示对象的索引号的值,或者 C# 中的 String (字符串 ) 值,该值 Name 表示集合中对象的 或 CategoryID 属性值。

注解

如果在 中 Index指定了类别的名称,此方法将删除与指定值匹配的第一个 Category 对象。

适用于