Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Sys / System / Configuration / SettingsProperty.cs / 1 / SettingsProperty.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration { using System.Collections; using System.Collections.Specialized; using System.Runtime.Serialization; using System.Configuration.Provider; using System.Globalization; using System.IO; using System.Runtime.Serialization.Formatters.Binary; using System.Xml.Serialization; using System.ComponentModel; //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// public class SettingsProperty { public virtual string Name { get { return _Name; } set { _Name = value; } } public virtual bool IsReadOnly { get { return _IsReadOnly; } set { _IsReadOnly = value; } } public virtual object DefaultValue { get { return _DefaultValue; } set { _DefaultValue = value; } } public virtual Type PropertyType { get { return _PropertyType; } set { _PropertyType = value; } } public virtual SettingsSerializeAs SerializeAs { get { return _SerializeAs; } set { _SerializeAs = value; } } public virtual SettingsProvider Provider { get { return _Provider; } set { _Provider = value; } } public virtual SettingsAttributeDictionary Attributes { get { return _Attributes; } } public bool ThrowOnErrorDeserializing { get { return _ThrowOnErrorDeserializing; } set { _ThrowOnErrorDeserializing = value; } } public bool ThrowOnErrorSerializing { get { return _ThrowOnErrorSerializing; } set { _ThrowOnErrorSerializing = value; } } //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// public SettingsProperty(string name) { _Name = name; _Attributes = new SettingsAttributeDictionary(); } public SettingsProperty(string name, Type propertyType, SettingsProvider provider, bool isReadOnly, object defaultValue, SettingsSerializeAs serializeAs, SettingsAttributeDictionary attributes, bool throwOnErrorDeserializing, bool throwOnErrorSerializing) { _Name = name; _PropertyType = propertyType; _Provider = provider; _IsReadOnly = isReadOnly; _DefaultValue = defaultValue; _SerializeAs = serializeAs; _Attributes = attributes; _ThrowOnErrorDeserializing = throwOnErrorDeserializing; _ThrowOnErrorSerializing = throwOnErrorSerializing; } //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// public SettingsProperty(SettingsProperty propertyToCopy) { _Name = propertyToCopy.Name; _IsReadOnly = propertyToCopy.IsReadOnly; _DefaultValue = propertyToCopy.DefaultValue; _SerializeAs = propertyToCopy.SerializeAs; _Provider = propertyToCopy.Provider; _PropertyType = propertyToCopy.PropertyType; _ThrowOnErrorDeserializing = propertyToCopy.ThrowOnErrorDeserializing; _ThrowOnErrorSerializing = propertyToCopy.ThrowOnErrorSerializing; _Attributes = new SettingsAttributeDictionary(propertyToCopy.Attributes); } private string _Name; private bool _IsReadOnly; private object _DefaultValue; private SettingsSerializeAs _SerializeAs; private SettingsProvider _Provider; private SettingsAttributeDictionary _Attributes; private Type _PropertyType; private bool _ThrowOnErrorDeserializing; private bool _ThrowOnErrorSerializing; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration { using System.Collections; using System.Collections.Specialized; using System.Runtime.Serialization; using System.Configuration.Provider; using System.Globalization; using System.IO; using System.Runtime.Serialization.Formatters.Binary; using System.Xml.Serialization; using System.ComponentModel; //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// public class SettingsProperty { public virtual string Name { get { return _Name; } set { _Name = value; } } public virtual bool IsReadOnly { get { return _IsReadOnly; } set { _IsReadOnly = value; } } public virtual object DefaultValue { get { return _DefaultValue; } set { _DefaultValue = value; } } public virtual Type PropertyType { get { return _PropertyType; } set { _PropertyType = value; } } public virtual SettingsSerializeAs SerializeAs { get { return _SerializeAs; } set { _SerializeAs = value; } } public virtual SettingsProvider Provider { get { return _Provider; } set { _Provider = value; } } public virtual SettingsAttributeDictionary Attributes { get { return _Attributes; } } public bool ThrowOnErrorDeserializing { get { return _ThrowOnErrorDeserializing; } set { _ThrowOnErrorDeserializing = value; } } public bool ThrowOnErrorSerializing { get { return _ThrowOnErrorSerializing; } set { _ThrowOnErrorSerializing = value; } } //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// public SettingsProperty(string name) { _Name = name; _Attributes = new SettingsAttributeDictionary(); } public SettingsProperty(string name, Type propertyType, SettingsProvider provider, bool isReadOnly, object defaultValue, SettingsSerializeAs serializeAs, SettingsAttributeDictionary attributes, bool throwOnErrorDeserializing, bool throwOnErrorSerializing) { _Name = name; _PropertyType = propertyType; _Provider = provider; _IsReadOnly = isReadOnly; _DefaultValue = defaultValue; _SerializeAs = serializeAs; _Attributes = attributes; _ThrowOnErrorDeserializing = throwOnErrorDeserializing; _ThrowOnErrorSerializing = throwOnErrorSerializing; } //////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////// public SettingsProperty(SettingsProperty propertyToCopy) { _Name = propertyToCopy.Name; _IsReadOnly = propertyToCopy.IsReadOnly; _DefaultValue = propertyToCopy.DefaultValue; _SerializeAs = propertyToCopy.SerializeAs; _Provider = propertyToCopy.Provider; _PropertyType = propertyToCopy.PropertyType; _ThrowOnErrorDeserializing = propertyToCopy.ThrowOnErrorDeserializing; _ThrowOnErrorSerializing = propertyToCopy.ThrowOnErrorSerializing; _Attributes = new SettingsAttributeDictionary(propertyToCopy.Attributes); } private string _Name; private bool _IsReadOnly; private object _DefaultValue; private SettingsSerializeAs _SerializeAs; private SettingsProvider _Provider; private SettingsAttributeDictionary _Attributes; private Type _PropertyType; private bool _ThrowOnErrorDeserializing; private bool _ThrowOnErrorSerializing; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CustomTypeDescriptor.cs
- WorkflowViewStateService.cs
- KnownBoxes.cs
- StorageConditionPropertyMapping.cs
- DependencyPropertyKind.cs
- ControlAdapter.cs
- VisualStateChangedEventArgs.cs
- DateTimePicker.cs
- FigureParaClient.cs
- DocumentReferenceCollection.cs
- DataServiceExpressionVisitor.cs
- TopClause.cs
- ResXResourceWriter.cs
- PointHitTestResult.cs
- WindowsTooltip.cs
- Vector3DKeyFrameCollection.cs
- MsmqBindingElementBase.cs
- SyndicationItem.cs
- AnimatedTypeHelpers.cs
- SchemaImporterExtensionsSection.cs
- TemplateNameScope.cs
- DataBinding.cs
- XmlTypeMapping.cs
- CodeStatementCollection.cs
- DataBinder.cs
- FloatAverageAggregationOperator.cs
- TakeQueryOptionExpression.cs
- PermissionListSet.cs
- Membership.cs
- SimpleFieldTemplateFactory.cs
- ImageField.cs
- PlatformNotSupportedException.cs
- RealizedColumnsBlock.cs
- ExpanderAutomationPeer.cs
- validationstate.cs
- Options.cs
- DateTimeOffset.cs
- OperationBehaviorAttribute.cs
- CodeFieldReferenceExpression.cs
- COM2ExtendedBrowsingHandler.cs
- BamlResourceSerializer.cs
- _TransmitFileOverlappedAsyncResult.cs
- AutomationEvent.cs
- PositiveTimeSpanValidatorAttribute.cs
- FileSecurity.cs
- DataGridViewMethods.cs
- EvidenceBase.cs
- Method.cs
- XmlSchemaObjectCollection.cs
- DateTimeFormatInfo.cs
- BuilderPropertyEntry.cs
- TextCollapsingProperties.cs
- EditorZone.cs
- NavigationWindow.cs
- GraphicsPath.cs
- NameTable.cs
- OleAutBinder.cs
- ThumbButtonInfo.cs
- TdsParameterSetter.cs
- MemoryMappedFile.cs
- SamlAuthenticationClaimResource.cs
- SimpleHandlerBuildProvider.cs
- Query.cs
- DependencySource.cs
- ListBoxItem.cs
- BrowsableAttribute.cs
- CroppedBitmap.cs
- Instrumentation.cs
- UrlMappingsModule.cs
- AutomationElement.cs
- UndoUnit.cs
- UrlAuthFailedErrorFormatter.cs
- CompModHelpers.cs
- XpsFixedDocumentReaderWriter.cs
- Classification.cs
- SQLInt32.cs
- TransformedBitmap.cs
- Int32AnimationUsingKeyFrames.cs
- XmlArrayAttribute.cs
- ComponentDispatcherThread.cs
- PointUtil.cs
- SrgsGrammar.cs
- ToolStripPanelCell.cs
- DefaultShape.cs
- AspNetHostingPermission.cs
- SyndicationDeserializer.cs
- DataGridRowHeaderAutomationPeer.cs
- BooleanFacetDescriptionElement.cs
- XmlDataSourceDesigner.cs
- PointAnimationUsingKeyFrames.cs
- ManipulationStartedEventArgs.cs
- ViewPort3D.cs
- ADMembershipUser.cs
- Number.cs
- DropDownList.cs
- XmlAnyAttributeAttribute.cs
- DeploymentSection.cs
- _UriSyntax.cs
- SectionXmlInfo.cs
- ControlAdapter.cs