Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Sys / System / Configuration / SettingsProperty.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XPathDocument.cs
- _SpnDictionary.cs
- CompressionTracing.cs
- WebConfigurationManager.cs
- HoistedLocals.cs
- RangeValueProviderWrapper.cs
- ImageList.cs
- FloaterBaseParagraph.cs
- SqlParameterizer.cs
- AutoFocusStyle.xaml.cs
- DataControlFieldHeaderCell.cs
- NameNode.cs
- PopupEventArgs.cs
- ValidateNames.cs
- ListBindingConverter.cs
- AssociationTypeEmitter.cs
- DelegatedStream.cs
- ThicknessAnimationBase.cs
- TcpClientCredentialType.cs
- NumberFunctions.cs
- Native.cs
- DEREncoding.cs
- DWriteFactory.cs
- ToolStripManager.cs
- HuffmanTree.cs
- FixedSOMLineRanges.cs
- ListBoxAutomationPeer.cs
- HtmlInputRadioButton.cs
- ManagementInstaller.cs
- BufferedReadStream.cs
- ISFTagAndGuidCache.cs
- SamlAuthenticationStatement.cs
- Mapping.cs
- XmlSchemaType.cs
- ReadOnlyPropertyMetadata.cs
- HtmlHead.cs
- DefaultValueTypeConverter.cs
- ItemsPanelTemplate.cs
- JpegBitmapEncoder.cs
- SelfIssuedAuthProofToken.cs
- ComplexPropertyEntry.cs
- LoginAutoFormat.cs
- CompilationPass2TaskInternal.cs
- ScriptHandlerFactory.cs
- Light.cs
- ElementAction.cs
- TTSEngineTypes.cs
- FormsAuthenticationEventArgs.cs
- IdentifierService.cs
- CatalogZoneBase.cs
- DeflateEmulationStream.cs
- QueryStringHandler.cs
- _StreamFramer.cs
- KeyboardNavigation.cs
- CacheAxisQuery.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- BooleanConverter.cs
- PageThemeCodeDomTreeGenerator.cs
- DbConnectionFactory.cs
- PlaceHolder.cs
- TabletCollection.cs
- BezierSegment.cs
- PrimitiveXmlSerializers.cs
- ControlParameter.cs
- RIPEMD160Managed.cs
- SessionStateModule.cs
- DropDownButton.cs
- DataListItemEventArgs.cs
- TextTreeRootTextBlock.cs
- PathFigureCollectionConverter.cs
- StringPropertyBuilder.cs
- DocumentSequenceHighlightLayer.cs
- FastEncoder.cs
- ChannelDispatcherCollection.cs
- RoleServiceManager.cs
- CngAlgorithmGroup.cs
- HiddenField.cs
- NullRuntimeConfig.cs
- ToolStripSeparator.cs
- WebProxyScriptElement.cs
- Socket.cs
- AnnouncementInnerClient11.cs
- DataErrorValidationRule.cs
- ThaiBuddhistCalendar.cs
- ScrollProviderWrapper.cs
- LinqDataSource.cs
- SQLInt32Storage.cs
- FileDialog_Vista.cs
- ScrollPatternIdentifiers.cs
- GridSplitter.cs
- ErrorTableItemStyle.cs
- Rfc2898DeriveBytes.cs
- arabicshape.cs
- FieldTemplateUserControl.cs
- HwndSource.cs
- RowBinding.cs
- PageCodeDomTreeGenerator.cs
- PrefixHandle.cs
- WebPartConnectionCollection.cs
- BindingListCollectionView.cs