SetConfigurationProperty() public method

public SetConfigurationProperty ( string propertyName, string propertyValue ) : void
propertyName string
propertyValue string
return void
Esempio n. 1
0
        /// <summary>
        /// Sets the value of a configuration dependent property.
        /// If the attribute does not exist it is created.
        /// If value is null it will be set to an empty string.
        /// </summary>
        /// <param name="name">property name.</param>
        /// <param name="value">value of property</param>
        public void SetConfigProperty(string name, string value)
        {
            CCITracing.TraceCall();
            if (value == null)
            {
                value = String.Empty;
            }

            if (this.ProjectMgr != null)
            {
                for (int i = 0, n = this.projectConfigs.Length; i < n; i++)
                {
                    ProjectConfig config = projectConfigs[i];

                    config.SetConfigurationProperty(name, value);
                }

                this.ProjectMgr.SetProjectFileDirty(true);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Sets the value of a configuration dependent property.
        /// If the attribute does not exist it is created.
        /// If value is null it will be set to an empty string.
        /// </summary>
        /// <param name="name">property name.</param>
        /// <param name="value">value of property</param>
        public virtual void SetConfigProperty(string name, _PersistStorageType storageType, string value)
        {
            CciTracing.TraceCall();
            if (value == null)
            {
                value = String.Empty;
            }

            if (this.ProjectManager != null)
            {
                for (int i = 0, n = this.projectConfigs.Length; i < n; i++)
                {
                    ProjectConfig config = projectConfigs[i];

                    config.SetConfigurationProperty(name, storageType, value);
                }

                this.ProjectManager.SetProjectFileDirty(true);
            }
        }