public virtual int RegisterTypeForComClients(Type type, RegistrationClassContext classContext, RegistrationConnectionType flags) { if (type == null) { throw new ArgumentNullException("type"); } if (type as RuntimeType == null) { throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"), "type"); } if (!this.TypeRequiresRegistration(type)) { throw new ArgumentException(Environment.GetResourceString("Argument_TypeMustBeComCreatable"), "type"); } return(RegistrationServices.RegisterTypeForComClientsExNative(type, classContext, flags)); }