ReadOnlyActiveDirectorySchemaPropertyCollection.Contains(ActiveDirectorySchemaProperty) 方法
定义
确定指定的 ActiveDirectorySchemaProperty 对象是否在此集合中。Determines if the specified ActiveDirectorySchemaProperty object is in this collection.
public:
bool Contains(System::DirectoryServices::ActiveDirectory::ActiveDirectorySchemaProperty ^ schemaProperty);
public bool Contains (System.DirectoryServices.ActiveDirectory.ActiveDirectorySchemaProperty schemaProperty);
member this.Contains : System.DirectoryServices.ActiveDirectory.ActiveDirectorySchemaProperty -> bool
Public Function Contains (schemaProperty As ActiveDirectorySchemaProperty) As Boolean
参数
- schemaProperty
- ActiveDirectorySchemaProperty
要在此集合中搜索的 ActiveDirectorySchemaProperty 对象。The ActiveDirectorySchemaProperty object to search for in this collection.
返回
如果 ActiveDirectorySchemaProperty 对象处于此集合中,则为 true;否则为 false。true if the ActiveDirectorySchemaProperty object is in this collection; otherwise, false.
例外
schemaProperty 为 null。schemaProperty is null.