Package system.directoryservices
Class DirectorySearcher
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.componentmodel.Component
-
- system.directoryservices.DirectorySearcher
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IJCOBridgeReflected
public class DirectorySearcher extends Component
The base .NET class managing System.DirectoryServices.DirectorySearcher, System.DirectoryServices, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.DirectoryServices.DirectorySearcher
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.DirectoryServices, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.StringassemblyShortNameAssembly name: System.DirectoryServicesstatic java.lang.StringclassNameQualified class name: System.DirectoryServices.DirectorySearcherstatic JCTypeclassTypeThe type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description DirectorySearcher()DirectorySearcher(java.lang.Object instance)Internal constructor.DirectorySearcher(java.lang.String filter)DirectorySearcher(java.lang.String filter, java.lang.String[] propertiesToLoad)DirectorySearcher(java.lang.String filter, java.lang.String[] propertiesToLoad, SearchScope scope)DirectorySearcher(DirectoryEntry searchRoot)DirectorySearcher(DirectoryEntry searchRoot, java.lang.String filter)DirectorySearcher(DirectoryEntry searchRoot, java.lang.String filter, java.lang.String[] propertiesToLoad)DirectorySearcher(DirectoryEntry searchRoot, java.lang.String filter, java.lang.String[] propertiesToLoad, SearchScope scope)
-
Method Summary
-
Methods inherited from class system.componentmodel.Component
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSite
-
Methods inherited from class system.MarshalByRefObject
GetLifetimeService, InitializeLifetimeService
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.DirectoryServices, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.DirectoryServices- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.DirectoryServices.DirectorySearcher- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DirectorySearcher
public DirectorySearcher(java.lang.Object instance) throws java.lang.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
DirectorySearcher
public DirectorySearcher() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidOperationException, FormatException, InvalidEnumArgumentException
-
DirectorySearcher
public DirectorySearcher(DirectoryEntry searchRoot, java.lang.String filter, java.lang.String[] propertiesToLoad, SearchScope scope) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, InvalidEnumArgumentException
-
DirectorySearcher
public DirectorySearcher(DirectoryEntry searchRoot, java.lang.String filter, java.lang.String[] propertiesToLoad) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidOperationException, FormatException, InvalidEnumArgumentException
-
DirectorySearcher
public DirectorySearcher(DirectoryEntry searchRoot, java.lang.String filter) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidOperationException, FormatException, InvalidEnumArgumentException
-
DirectorySearcher
public DirectorySearcher(DirectoryEntry searchRoot) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidOperationException, FormatException, InvalidEnumArgumentException
-
DirectorySearcher
public DirectorySearcher(java.lang.String filter, java.lang.String[] propertiesToLoad, SearchScope scope) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidOperationException, FormatException, InvalidEnumArgumentException
-
DirectorySearcher
public DirectorySearcher(java.lang.String filter, java.lang.String[] propertiesToLoad) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidOperationException, FormatException, InvalidEnumArgumentException
-
DirectorySearcher
public DirectorySearcher(java.lang.String filter) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidOperationException, FormatException, InvalidEnumArgumentException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classComponent- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classComponent- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classComponent- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classComponent- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classComponent
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classComponent- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static DirectorySearcher cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoDirectorySearcher, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
DirectorySearcherinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
FindOne
public SearchResult FindOne() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, RankException, ArrayTypeMismatchException, NotSupportedException, NotImplementedException, OutOfMemoryException, FormatException, AccessViolationException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentNullExceptionCultureNotFoundExceptionInvalidOperationExceptionObjectDisposedExceptionRankExceptionArrayTypeMismatchExceptionNotSupportedExceptionNotImplementedExceptionOutOfMemoryExceptionFormatExceptionAccessViolationException
-
FindAll
public SearchResultCollection FindAll() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, RankException, ArrayTypeMismatchException, NotSupportedException, NotImplementedException, OutOfMemoryException, FormatException, AccessViolationException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionArgumentNullExceptionCultureNotFoundExceptionInvalidOperationExceptionObjectDisposedExceptionRankExceptionArrayTypeMismatchExceptionNotSupportedExceptionNotImplementedExceptionOutOfMemoryExceptionFormatExceptionAccessViolationException
-
getAsynchronous
public boolean getAsynchronous() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setAsynchronous
public void setAsynchronous(boolean Asynchronous) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getCacheResults
public boolean getCacheResults() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setCacheResults
public void setCacheResults(boolean CacheResults) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getPropertyNamesOnly
public boolean getPropertyNamesOnly() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setPropertyNamesOnly
public void setPropertyNamesOnly(boolean PropertyNamesOnly) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getTombstone
public boolean getTombstone() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setTombstone
public void setTombstone(boolean Tombstone) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getPageSize
public int getPageSize() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setPageSize
public void setPageSize(int PageSize) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getSizeLimit
public int getSizeLimit() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setSizeLimit
public void setSizeLimit(int SizeLimit) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getPropertiesToLoad
public StringCollection getPropertiesToLoad() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getDerefAlias
public DereferenceAlias getDerefAlias() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setDerefAlias
public void setDerefAlias(DereferenceAlias DerefAlias) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, InvalidOperationException, NotSupportedException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException
-
getSearchRoot
public DirectoryEntry getSearchRoot() throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, IndexOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, OverflowException, FormatException, RankException, ArrayTypeMismatchException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentNullExceptionPlatformNotSupportedExceptionArgumentOutOfRangeExceptionNotSupportedExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionInvalidOperationExceptionObjectDisposedExceptionOverflowExceptionFormatExceptionRankExceptionArrayTypeMismatchException
-
setSearchRoot
public void setSearchRoot(DirectoryEntry SearchRoot) throws java.lang.Throwable, NotSupportedException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionInvalidOperationExceptionArgumentOutOfRangeException
-
getDirectorySynchronization
public DirectorySynchronization getDirectorySynchronization() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, OverflowException, FormatException, IndexOutOfRangeException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionOutOfMemoryExceptionOverflowExceptionFormatExceptionIndexOutOfRangeException
-
setDirectorySynchronization
public void setDirectorySynchronization(DirectorySynchronization DirectorySynchronization) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getVirtualListView
public DirectoryVirtualListView getVirtualListView() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, OverflowException, FormatException
-
setVirtualListView
public void setVirtualListView(DirectoryVirtualListView VirtualListView) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getExtendedDN
public ExtendedDN getExtendedDN() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setExtendedDN
public void setExtendedDN(ExtendedDN ExtendedDN) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, InvalidOperationException, NotSupportedException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException
-
getReferralChasing
public ReferralChasingOption getReferralChasing() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setReferralChasing
public void setReferralChasing(ReferralChasingOption ReferralChasing) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, InvalidOperationException, NotSupportedException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException
-
getSearchScope
public SearchScope getSearchScope() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setSearchScope
public void setSearchScope(SearchScope SearchScope) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, InvalidOperationException, NotSupportedException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException
-
getSecurityMasks
public SecurityMasks getSecurityMasks() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setSecurityMasks
public void setSecurityMasks(SecurityMasks SecurityMasks) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, InvalidOperationException, NotSupportedException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException
-
getSort
public SortOption getSort() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setSort
public void setSort(SortOption Sort) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
getAttributeScopeQuery
public java.lang.String getAttributeScopeQuery() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setAttributeScopeQuery
public void setAttributeScopeQuery(java.lang.String AttributeScopeQuery) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getFilter
public java.lang.String getFilter() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
setFilter
public void setFilter(java.lang.String Filter) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
getClientTimeout
public TimeSpan getClientTimeout() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setClientTimeout
public void setClientTimeout(TimeSpan ClientTimeout) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getServerPageTimeLimit
public TimeSpan getServerPageTimeLimit() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setServerPageTimeLimit
public void setServerPageTimeLimit(TimeSpan ServerPageTimeLimit) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getServerTimeLimit
public TimeSpan getServerTimeLimit() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setServerTimeLimit
public void setServerTimeLimit(TimeSpan ServerTimeLimit) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
-