Microsoft.VisualStudio.Project.SettingsPage.SetConfigProperty C# (CSharp) Method

SetConfigProperty() public method

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.
public SetConfigProperty ( string name, _PersistStorageType storageType, string value ) : void
name string property name.
storageType _PersistStorageType
value string value of property
return void
        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);
            }
        }