protected internal virtual LdapMessage MakeExtendedOperation(LdapExtendedOperation op, LdapConstraints cons)
{
// Use default constraints if none-specified
if (cons == null)
cons = defSearchCons;
// error check the parameters
if ((System.Object) op.getID() == null)
{
// Invalid extended operation parameter, no OID specified
throw new System.ArgumentException(ExceptionMessages.OP_PARAM_ERROR);
}
return new LdapExtendedRequest(op, cons.getControls());
}