/// <summary>
        /// 当在派生类中被重写时,将组件的此属性的值重置为默认值。
        /// </summary>
        /// <param name="component">具有要重置为默认值的属性值的组件。</param>
        public override void ResetValue(object component)
        {
            NetworkDeviceConnectionStringBuilder1 builder = component as NetworkDeviceConnectionStringBuilder1;

            if (builder != null)
            {
                builder.Remove(this.DisplayName);
                if (this.RefreshOnChange)
                {
                    builder.ClearPropertyDescriptors();
                }
            }
        }
        /// <summary>
        /// 当在派生类中被重写时,将组件的值设置为一个不同的值。
        /// </summary>
        /// <param name="component">具有要进行设置的属性值的组件。</param>
        /// <param name="value">新值。</param>
        public override void SetValue(object component, object value)
        {
            NetworkDeviceConnectionStringBuilder1 builder = component as NetworkDeviceConnectionStringBuilder1;

            if (builder != null)
            {
                if ((typeof(string) == this.PropertyType) && string.Empty.Equals(value))
                {
                    value = null;
                }
                builder[this.DisplayName] = value;
                if (this.RefreshOnChange)
                {
                    builder.ClearPropertyDescriptors();
                }
            }
        }