TestimoX

API Reference

Class

LdapToolQueryValueExtensions

Namespace ADPlayground.Helpers
Assembly ADPlayground
Modifiers static

Typed value readers for LdapToolQueryRow and formatted LDAP attribute dictionaries.

Inheritance

  • Object
  • LdapToolQueryValueExtensions

Methods

public static Nullable<DateTime> GetFileTimeUtc(IReadOnlyDictionary<String, Object> attributes, String key) #
Returns: Nullable<DateTime>

Reads a best-effort FILETIME (UTC) value from formatted LDAP attributes.

Parameters

attributes System.Collections.Generic.IReadOnlyDictionary{System.String,System.Object} requiredposition: 0
Formatted LDAP attributes.
key System.String requiredposition: 1
Attribute name.

Returns

UTC timestamp when value could be parsed as FILETIME; otherwise null.

GetInt32 2 overloads
public static Nullable<Int32> GetInt32(IReadOnlyDictionary<String, Object> attributes, String key) #
Returns: Nullable<Int32>

Reads a best-effort 32-bit integer value from an LDAP query row.

Parameters

row ADPlayground.Helpers.LdapToolQueryRow requiredposition: 0
LDAP query row.
key System.String requiredposition: 1
Attribute name.

Returns

Parsed integer value when possible; otherwise null.

GetInt32(System.Collections.Generic.IReadOnlyDictionary{System.String,System.Object} attributes, System.String key) #

Reads a best-effort 32-bit integer value from formatted LDAP attributes.

Parameters

attributes System.Collections.Generic.IReadOnlyDictionary{System.String,System.Object} required
Formatted LDAP attributes.
key System.String required
Attribute name.

Returns

Parsed integer value when possible; otherwise null.

GetInt64 2 overloads
public static Nullable<Int64> GetInt64(IReadOnlyDictionary<String, Object> attributes, String key) #
Returns: Nullable<Int64>

Reads a best-effort 64-bit integer value from an LDAP query row.

Parameters

row ADPlayground.Helpers.LdapToolQueryRow requiredposition: 0
LDAP query row.
key System.String requiredposition: 1
Attribute name.

Returns

Parsed integer value when possible; otherwise null.

GetInt64(System.Collections.Generic.IReadOnlyDictionary{System.String,System.Object} attributes, System.String key) #

Reads a best-effort 64-bit integer value from formatted LDAP attributes.

Parameters

attributes System.Collections.Generic.IReadOnlyDictionary{System.String,System.Object} required
Formatted LDAP attributes.
key System.String required
Attribute name.

Returns

Parsed integer value when possible; otherwise null.

GetString 2 overloads
public static String GetString(IReadOnlyDictionary<String, Object> attributes, String key) #
Returns: String

Reads a best-effort string value from an LDAP query row.

Parameters

row ADPlayground.Helpers.LdapToolQueryRow requiredposition: 0
LDAP query row.
key System.String requiredposition: 1
Attribute name.

Returns

Attribute value as string, or an empty string when not present.

GetString(System.Collections.Generic.IReadOnlyDictionary{System.String,System.Object} attributes, System.String key) #

Reads a best-effort string value from formatted LDAP attributes.

Parameters

attributes System.Collections.Generic.IReadOnlyDictionary{System.String,System.Object} required
Formatted LDAP attributes.
key System.String required
Attribute name.

Returns

Attribute value as string, or an empty string when not present.

GetStringValues 2 overloads
public static IReadOnlyList<String> GetStringValues(IReadOnlyDictionary<String, Object> attributes, String key) #
Returns: IReadOnlyList<String>

Reads best-effort string values from an LDAP query row.

Parameters

row ADPlayground.Helpers.LdapToolQueryRow requiredposition: 0
LDAP query row.
key System.String requiredposition: 1
Attribute name.

Returns

Attribute values as strings (empty when missing).

GetStringValues(System.Collections.Generic.IReadOnlyDictionary{System.String,System.Object} attributes, System.String key) #

Reads best-effort string values from formatted LDAP attributes.

Parameters

attributes System.Collections.Generic.IReadOnlyDictionary{System.String,System.Object} required
Formatted LDAP attributes.
key System.String required
Attribute name.

Returns

Attribute values as strings (empty when missing).