Ejemplo n.º 1
0
 public void SetOption(Native.Native.LdapOption option, IntPtr valuePtr)
 {
     ThrowIfNotInitialized();
     _native.ThrowIfError(_native.ldap_set_option(_ld, (int)option, valuePtr), nameof(_native.ldap_set_option));
 }
Ejemplo n.º 2
0
 public void SetOption(Native.Native.LdapOption option, int value)
 {
     ThrowIfNotBound();
     _native.ThrowIfError(_native.ldap_set_option(_ld, (int)option, ref value),
                          nameof(_native.ldap_set_option));
 }
Ejemplo n.º 3
0
 public void SetOption(Native.Native.LdapOption option, string value)
 {
     ThrowIfNotInitialized();
     _native.ThrowIfError(_native.ldap_set_option(_ld, (int)option, ref value),
                          nameof(_native.ldap_set_option));
 }
Ejemplo n.º 4
0
 public void SetOption(Native.Native.LdapOption option, IntPtr valuePtr, bool global = false)
 {
     ThrowIfNotInitialized();
     _native.ThrowIfError(_native.ldap_set_option(GetLdapHandle(global), (int)option, valuePtr),
                          nameof(_native.ldap_set_option));
 }