---
title: "The Properties Facet"
url: https://docs.zeroc.com/ice/3.8/administration/administrative-facility/properties-facet
language: ruby
docs_index: https://docs.zeroc.com/llms.txt
---

> For an index of every page, see [llms.txt](https://docs.zeroc.com/llms.txt).

# The Properties Facet

Programming language: Ruby. Other languages: [C++](https://docs.zeroc.com/ice/3.8/administration/administrative-facility/properties-facet/cpp.md), [C#](https://docs.zeroc.com/ice/3.8/administration/administrative-facility/properties-facet/csharp.md), [Java](https://docs.zeroc.com/ice/3.8/administration/administrative-facility/properties-facet/java.md), [JavaScript](https://docs.zeroc.com/ice/3.8/administration/administrative-facility/properties-facet/js.md), [MATLAB](https://docs.zeroc.com/ice/3.8/administration/administrative-facility/properties-facet/matlab.md), [PHP](https://docs.zeroc.com/ice/3.8/administration/administrative-facility/properties-facet/php.md), [Python](https://docs.zeroc.com/ice/3.8/administration/administrative-facility/properties-facet/python.md), [Swift](https://docs.zeroc.com/ice/3.8/administration/administrative-facility/properties-facet/swift.md).

The `Properties` facet lets an administrative client read and update the [configuration properties](https://docs.zeroc.com/ice/3.8/runtime/properties-and-configuration/ruby.md) of a running program's communicator. It implements the [`Ice::PropertiesAdmin`](https://code.zeroc.com/ice/3.8/api/ruby/Ice/PropertiesAdminPrx.html) interface.

## Reading and Updating Properties

An administrative client reads properties with `getProperty` and `getPropertiesForPrefix`, and updates them with `setProperties`. `setProperties` merges the properties it receives into the communicator's properties: it adds or changes each property that has a value, and removes each property whose value is empty. The other properties keep their values.

`setProperties` applies [property validation](https://docs.zeroc.com/ice/3.8/runtime/properties-and-configuration/properties-overview/ruby.md#property-validation) to each property it adds, changes or removes. The update is not all or nothing: when validation rejects a property, the properties that `setProperties` applied before it keep their new values. Set [Ice.Trace.Admin.Properties](https://docs.zeroc.com/ice/3.8/property-reference/ice-trace-properties/ruby.md#ice.trace.admin.properties) to trace the changes that `setProperties` makes.

> **Note**
>
> Changing a property generally does not reconfigure an initialized Ice component. When the Metrics facet is also enabled, updates to `IceMX.Metrics.*` through this facet reconfigure the metrics views. Application properties take effect when the application reads them again or handles a property update callback.

Use a `PropertiesAdmin` proxy to access another communicator's `Properties` facet [remotely](https://docs.zeroc.com/ice/3.8/administration/administrative-facility/using-the-admin-object/ruby.md).

## See Also

- [Properties and Configuration](https://docs.zeroc.com/ice/3.8/runtime/properties-and-configuration/ruby.md)
- [IceGrid](https://docs.zeroc.com/ice/3.8/services/icegrid.md)
- [Using the admin Object](https://docs.zeroc.com/ice/3.8/administration/administrative-facility/using-the-admin-object/ruby.md)
