public virtual void RegisterTypeForComClients(Type type, ref Guid g) { 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"); } RegistrationServices.RegisterTypeForComClientsNative(type, ref g); }