DirectoryAttributeCollection.Contains(DirectoryAttribute) 方法

定义

Contains(DirectoryAttribute) 方法确定该 DirectoryAttributeCollection 对象是否包含指定的 DirectoryAttribute 对象。

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

参数

value
DirectoryAttribute

要搜索的 DirectoryAttribute 对象。

返回

如果指定的 DirectoryAttribute 在集合中,则为 true;否则为 false

适用于