Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MatrixTransform3D.cs
- XmlnsDefinitionAttribute.cs
- SqlBuffer.cs
- XmlSchemaRedefine.cs
- IISUnsafeMethods.cs
- ValidationResult.cs
- AccessDataSource.cs
- CatalogZoneBase.cs
- SoapAttributeOverrides.cs
- DelegatedStream.cs
- InvalidCastException.cs
- X509Certificate2.cs
- WebPartManagerInternals.cs
- SourceChangedEventArgs.cs
- _ScatterGatherBuffers.cs
- dbdatarecord.cs
- FixedBufferAttribute.cs
- RequestQueue.cs
- PerformanceCounterPermissionAttribute.cs
- SettingsPropertyValueCollection.cs
- NetDataContractSerializer.cs
- ConsumerConnectionPointCollection.cs
- DataTableCollection.cs
- SQLByte.cs
- SystemEvents.cs
- MemoryRecordBuffer.cs
- MouseButton.cs
- unitconverter.cs
- WebAdminConfigurationHelper.cs
- TextElementEditingBehaviorAttribute.cs
- XamlSerializer.cs
- RtfControlWordInfo.cs
- MSAAWinEventWrap.cs
- LifetimeServices.cs
- validation.cs
- FieldNameLookup.cs
- LogFlushAsyncResult.cs
- SkewTransform.cs
- GroupByExpressionRewriter.cs
- ZipFileInfoCollection.cs
- TextElementEditingBehaviorAttribute.cs
- DSASignatureFormatter.cs
- ByteStorage.cs
- IIS7WorkerRequest.cs
- DllNotFoundException.cs
- XmlSchemaAny.cs
- WSMessageEncoding.cs
- FontSourceCollection.cs
- WebServiceTypeData.cs
- ScriptResourceAttribute.cs
- CodeIterationStatement.cs
- oledbmetadatacollectionnames.cs
- XmlWhitespace.cs
- Cursors.cs
- SectionInformation.cs
- WebPartDisplayModeCancelEventArgs.cs
- ProcessModule.cs
- TemplateFactory.cs
- DocumentViewerAutomationPeer.cs
- GPRECT.cs
- OracleConnection.cs
- _RequestCacheProtocol.cs
- IDQuery.cs
- GeometryGroup.cs
- MethodAccessException.cs
- DataServiceException.cs
- BaseProcessProtocolHandler.cs
- StringCollection.cs
- FontStretchConverter.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- TimeoutException.cs
- LoginView.cs
- XamlStream.cs
- SqlXmlStorage.cs
- Evidence.cs
- Function.cs
- ConnectionManager.cs
- SafeNativeMethods.cs
- ExpressionConverter.cs
- XhtmlConformanceSection.cs
- nulltextcontainer.cs
- JoinTreeNode.cs
- Debug.cs
- Propagator.ExtentPlaceholderCreator.cs
- ToolStripComboBox.cs
- SqlExpander.cs
- TemplateAction.cs
- XmlValueConverter.cs
- SystemColors.cs
- IndexingContentUnit.cs
- ResXDataNode.cs
- DataKey.cs
- TextPenaltyModule.cs
- TargetControlTypeCache.cs
- WindowsEditBox.cs
- NetworkInformationException.cs
- ScrollItemPatternIdentifiers.cs
- CodeDomLoader.cs
- FaultContext.cs
- TableStyle.cs