/// <summary> Sets a single control to be sent to the server. /// /// </summary> /// <param name="control"> A single control to be sent to the server or /// null if none. /// </param> public virtual void setControls(LdapControl control) { if (control == null) { this.controls = null; return; } this.controls = new LdapControl[1]; this.controls[0] = (LdapControl)control.Clone(); }
/// <summary> Sets a single control to be sent to the server. /// /// </summary> /// <param name="control"> A single control to be sent to the server or /// null if none. /// </param> public virtual void setControls(LdapControl control) { if (control == null) { this.controls = null; return ; } this.controls = new LdapControl[1]; this.controls[0] = (LdapControl) control.Clone(); return ; }