Clone() public method

Returns a copy of the current LdapControl object.
public Clone ( ) : Object
return System.Object
示例#1
0
 /// <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();
 }
示例#2
0
		/// <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 ;
		}