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=8.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.String
assemblyFullName
Fully assembly qualified name: System.DirectoryServices, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.DirectoryServicesstatic java.lang.String
className
Qualified class name: System.DirectoryServices.DirectorySearcherstatic JCType
classType
The 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=8.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.Throwable
Internal 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:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classComponent
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classComponent
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classComponent
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classComponent
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classComponent
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classComponent
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static DirectorySearcher cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoDirectorySearcher
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
DirectorySearcher
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
FindOne
public SearchResult FindOne() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, InvalidOperationException, CultureNotFoundException, ObjectDisposedException, RankException, ArrayTypeMismatchException, NotSupportedException, NotImplementedException, OutOfMemoryException, FormatException, AccessViolationException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
ArgumentNullException
InvalidOperationException
CultureNotFoundException
ObjectDisposedException
RankException
ArrayTypeMismatchException
NotSupportedException
NotImplementedException
OutOfMemoryException
FormatException
AccessViolationException
-
FindAll
public SearchResultCollection FindAll() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, InvalidOperationException, CultureNotFoundException, ObjectDisposedException, RankException, ArrayTypeMismatchException, NotSupportedException, NotImplementedException, OutOfMemoryException, FormatException, AccessViolationException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
ArgumentNullException
InvalidOperationException
CultureNotFoundException
ObjectDisposedException
RankException
ArrayTypeMismatchException
NotSupportedException
NotImplementedException
OutOfMemoryException
FormatException
AccessViolationException
-
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, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
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, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
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, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
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, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException
-
getSearchRoot
public DirectoryEntry getSearchRoot() throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, NotSupportedException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, CultureNotFoundException, ObjectDisposedException, OverflowException, FormatException, RankException, ArrayTypeMismatchException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
NotSupportedException
InvalidOperationException
PlatformNotSupportedException
IndexOutOfRangeException
CultureNotFoundException
ObjectDisposedException
OverflowException
FormatException
RankException
ArrayTypeMismatchException
-
setSearchRoot
public void setSearchRoot(DirectoryEntry SearchRoot) throws java.lang.Throwable, NotSupportedException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
InvalidOperationException
ArgumentOutOfRangeException
-
getDirectorySynchronization
public DirectorySynchronization getDirectorySynchronization() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, OverflowException, FormatException, IndexOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
OutOfMemoryException
OverflowException
FormatException
IndexOutOfRangeException
-
setDirectorySynchronization
public void setDirectorySynchronization(DirectorySynchronization DirectorySynchronization) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
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, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
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, 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, 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, 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, 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, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
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, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
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, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
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, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException
-
-