Novell.Directory.Ldap.LdapConnection.MakeExtendedOperation C# (CSharp) Метод

MakeExtendedOperation() защищенный Метод

Formulates the extended operation, constraints into an LdapMessage and returns the LdapMessage. This is used by extendedOperation and startTLS which needs the LdapMessage to get the MessageID.
protected MakeExtendedOperation ( LdapExtendedOperation op, LdapConstraints cons ) : LdapMessage
op LdapExtendedOperation
cons LdapConstraints
Результат LdapMessage
        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());
        }