API Reference
LdapToolQueryValueExtensions
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) #Nullable<DateTime>Reads a best-effort FILETIME (UTC) value from formatted LDAP attributes.
Parameters
- attributes System.Collections.Generic.IReadOnlyDictionary{System.String,System.Object}
- Formatted LDAP attributes.
- key System.String
- Attribute name.
Returns
UTC timestamp when value could be parsed as FILETIME; otherwise null.
public static Nullable<Int32> GetInt32(IReadOnlyDictionary<String, Object> attributes, String key) #Nullable<Int32>Reads a best-effort 32-bit integer value from an LDAP query row.
Parameters
- row ADPlayground.Helpers.LdapToolQueryRow
- LDAP query row.
- key System.String
- 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}
- Formatted LDAP attributes.
- key System.String
- Attribute name.
Returns
Parsed integer value when possible; otherwise null.
public static Nullable<Int64> GetInt64(IReadOnlyDictionary<String, Object> attributes, String key) #Nullable<Int64>Reads a best-effort 64-bit integer value from an LDAP query row.
Parameters
- row ADPlayground.Helpers.LdapToolQueryRow
- LDAP query row.
- key System.String
- 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}
- Formatted LDAP attributes.
- key System.String
- Attribute name.
Returns
Parsed integer value when possible; otherwise null.
public static String GetString(IReadOnlyDictionary<String, Object> attributes, String key) #StringReads a best-effort string value from an LDAP query row.
Parameters
- row ADPlayground.Helpers.LdapToolQueryRow
- LDAP query row.
- key System.String
- 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}
- Formatted LDAP attributes.
- key System.String
- Attribute name.
Returns
Attribute value as string, or an empty string when not present.
public static IReadOnlyList<String> GetStringValues(IReadOnlyDictionary<String, Object> attributes, String key) #IReadOnlyList<String>Reads best-effort string values from an LDAP query row.
Parameters
- row ADPlayground.Helpers.LdapToolQueryRow
- LDAP query row.
- key System.String
- 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}
- Formatted LDAP attributes.
- key System.String
- Attribute name.
Returns
Attribute values as strings (empty when missing).