public void FromManaged(LdapReferralCallback managed) { _managed = managed; _native.sizeofcallback = sizeof(Native); _native.query = managed.query is not null?Marshal.GetFunctionPointerForDelegate(managed.query) : IntPtr.Zero; _native.notify = managed.notify is not null?Marshal.GetFunctionPointerForDelegate(managed.notify) : IntPtr.Zero; _native.dereference = managed.dereference is not null?Marshal.GetFunctionPointerForDelegate(managed.dereference) : IntPtr.Zero; }
public static partial int ldap_set_option_referral(ConnectionHandle ldapHandle, LdapOption option, ref LdapReferralCallback outValue);
public static extern int ldap_set_option_referral([In] ConnectionHandle ldapHandle, [In] LdapOption option, ref LdapReferralCallback outValue);