ActiveDirectorySchemaPropertyCollection.Remove(ActiveDirectorySchemaProperty) 方法

定义

移除此集合中与指定的 ActiveDirectorySchemaProperty 对象相同的对象的第一个匹配项。Removes the first occurrence of an object in this collection that is identical to the specified ActiveDirectorySchemaProperty object.

public:
 void Remove(System::DirectoryServices::ActiveDirectory::ActiveDirectorySchemaProperty ^ schemaProperty);
public void Remove (System.DirectoryServices.ActiveDirectory.ActiveDirectorySchemaProperty schemaProperty);
member this.Remove : System.DirectoryServices.ActiveDirectory.ActiveDirectorySchemaProperty -> unit
Public Sub Remove (schemaProperty As ActiveDirectorySchemaProperty)

参数

schemaProperty
ActiveDirectorySchemaProperty

要从此集合中移除的 ActiveDirectorySchemaProperty 对象。The ActiveDirectorySchemaProperty object to remove from this collection.

例外

对基础目录服务的调用导致了错误。A call to the underlying directory service resulted in an error.

此集合中不存在该对象。The object does not exist in this collection.

schemaPropertynullschemaProperty is null.

尚未将 ActiveDirectorySchemaProperty 对象保存到 Active Directory 域服务存储区中。The ActiveDirectorySchemaProperty object has not yet been saved in the Active Directory Domain Services store.

适用于

另请参阅