DirectoryControlCollection.Contains(DirectoryControl) 方法

定义

Contains(DirectoryControl) 方法确定该 DirectoryControlCollection 对象是否包含指定的 DirectoryControl 对象。The Contains(DirectoryControl) method determines whether this DirectoryControlCollection object contains a specified DirectoryControl object.

public:
 bool Contains(System::DirectoryServices::Protocols::DirectoryControl ^ value);
public bool Contains (System.DirectoryServices.Protocols.DirectoryControl value);
member this.Contains : System.DirectoryServices.Protocols.DirectoryControl -> bool
Public Function Contains (value As DirectoryControl) As Boolean

参数

value
DirectoryControl

要搜索的 DirectoryControl 对象。The DirectoryControl object for which to search.

返回

Boolean

如果指定的 DirectoryControl 对象属于该集合,则为 true;否则为 falsetrue if the specified DirectoryControl object is part of the collection; false, otherwise.

适用于