Não é possível definir InstanceLifetime após a inicialização da instância. Use o construtor padrão e defina as propriedades CategoryName, InstanceName, CounterName, InstanceLifetime e ReadOnly manualmente, antes de definir RawValue.
Click to search this error in Google
English version
The InstanceLifetime cannot be set after the instance has been initialized. You must use the default constructor and set the CategoryName, InstanceName, CounterName, InstanceLifetime and ReadOnly properties manually before setting the RawValue.