DirectoryServerCollection.Contains(DirectoryServer) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines if the specified DirectoryServer object is in this collection.
public:
bool Contains(System::DirectoryServices::ActiveDirectory::DirectoryServer ^ server);
public bool Contains (System.DirectoryServices.ActiveDirectory.DirectoryServer server);
member this.Contains : System.DirectoryServices.ActiveDirectory.DirectoryServer -> bool
Public Function Contains (server As DirectoryServer) As Boolean
Parameters
- server
- DirectoryServer
The DirectoryServer object to search for in this collection.
Returns
true
if the DirectoryServer object is in this collection; otherwise, false
.
Exceptions
A call to the underlying directory service resulted in an error.
server
is null
.
The DirectoryServer object has not yet been saved in the Active Directory Domain Services store.
Applies to
See also
שתף איתנו פעולה ב- GitHub
ניתן למצוא את המקור לתוכן זה ב- GitHub, שם ניתן גם ליצור ולסקור בעיות ולמשוך בקשות. לקבלת מידע נוסף, עיין במדריך התורמים שלנו.