共用方式為


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

適用於