TestimoX

API Reference

Class

SchemaGuidResolver

Namespace ADPlayground.DirectoryServices
Assembly ADPlayground
Modifiers static

Maps between schema GUIDs (schemaIDGUID/rightsguid) and their names (name/ldapDisplayName/displayName). Centralized, cached, and reusable across the project.

Inheritance

  • Object
  • SchemaGuidResolver

Methods

public static Void EnsureLoaded(String domainName = null) #
Returns: Void

Loads schema and extended rights maps once per process.

Parameters

domainName System.String = null optionalposition: 0
Optional domain to prefer when locating a DC; when null, uses default RootDSE.
public static IReadOnlyDictionary<Guid, String> GetExtendedRightsMap() #
Returns: IReadOnlyDictionary<Guid, String>

Returns the cached map of rightsGuid to display name.

public static IReadOnlyDictionary<Guid, ValueTuple<String, String>> GetSchemaMap() #
Returns: IReadOnlyDictionary<Guid, ValueTuple<String, String>>

Returns the cached map of schemaIDGUID to names.

public static Boolean TryGetExtendedRightDisplayName(Guid guid, out String displayName) #
Returns: Boolean

Attempts to resolve a rightsGuid to its display name.

Parameters

guid System.Guid requiredposition: 0
displayName System.String@ requiredposition: 1
public static Boolean TryGetGuid(String nameOrDisplayName, out Guid guid) #
Returns: Boolean

Attempts to resolve a known schema/right name to its GUID.

Parameters

nameOrDisplayName System.String requiredposition: 0
guid System.Guid@ requiredposition: 1
public static Boolean TryGetSchemaNames(Guid guid, out String name, out String ldapDisplayName) #
Returns: Boolean

Attempts to resolve a schemaIDGUID to the class/attribute name and ldapDisplayName.

Parameters

guid System.Guid requiredposition: 0
name System.String@ requiredposition: 1
ldapDisplayName System.String@ requiredposition: 2