Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Configuration / System / Configuration / ConfigurationPropertyAttribute.cs / 1 / ConfigurationPropertyAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Configuration.Internal; using System.Collections; using System.Collections.Specialized; using System.Collections.Generic; using System.IO; using System.Reflection; using System.Security.Permissions; using System.Xml; using System.Globalization; using System.ComponentModel; using System.Security; using System.Text; namespace System.Configuration { [AttributeUsage(AttributeTargets.Property)] public sealed class ConfigurationPropertyAttribute : Attribute { internal static readonly String DefaultCollectionPropertyName = ""; private String _Name; private object _DefaultValue = ConfigurationElement.s_nullPropertyValue; private ConfigurationPropertyOptions _Flags = ConfigurationPropertyOptions.None; public ConfigurationPropertyAttribute(String name) { _Name = name; } public String Name { get { return _Name; } } public object DefaultValue { get { return _DefaultValue; } set { _DefaultValue = value; } } public ConfigurationPropertyOptions Options { get { return _Flags; } set { _Flags = value; } } public bool IsDefaultCollection { get { return ((Options & ConfigurationPropertyOptions.IsDefaultCollection) != 0); } set { if (value == true) { Options |= ConfigurationPropertyOptions.IsDefaultCollection; } else Options &= ~ConfigurationPropertyOptions.IsDefaultCollection; } } public bool IsRequired { get { return ((Options & ConfigurationPropertyOptions.IsRequired) != 0); } set { if (value == true) { Options |= ConfigurationPropertyOptions.IsRequired; } else { Options &= ~ConfigurationPropertyOptions.IsRequired; } } } public bool IsKey { get { return ((Options & ConfigurationPropertyOptions.IsKey) != 0); } set { if (value == true) { Options |= ConfigurationPropertyOptions.IsKey; } else { Options &= ~ConfigurationPropertyOptions.IsKey; } } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Configuration.Internal; using System.Collections; using System.Collections.Specialized; using System.Collections.Generic; using System.IO; using System.Reflection; using System.Security.Permissions; using System.Xml; using System.Globalization; using System.ComponentModel; using System.Security; using System.Text; namespace System.Configuration { [AttributeUsage(AttributeTargets.Property)] public sealed class ConfigurationPropertyAttribute : Attribute { internal static readonly String DefaultCollectionPropertyName = ""; private String _Name; private object _DefaultValue = ConfigurationElement.s_nullPropertyValue; private ConfigurationPropertyOptions _Flags = ConfigurationPropertyOptions.None; public ConfigurationPropertyAttribute(String name) { _Name = name; } public String Name { get { return _Name; } } public object DefaultValue { get { return _DefaultValue; } set { _DefaultValue = value; } } public ConfigurationPropertyOptions Options { get { return _Flags; } set { _Flags = value; } } public bool IsDefaultCollection { get { return ((Options & ConfigurationPropertyOptions.IsDefaultCollection) != 0); } set { if (value == true) { Options |= ConfigurationPropertyOptions.IsDefaultCollection; } else Options &= ~ConfigurationPropertyOptions.IsDefaultCollection; } } public bool IsRequired { get { return ((Options & ConfigurationPropertyOptions.IsRequired) != 0); } set { if (value == true) { Options |= ConfigurationPropertyOptions.IsRequired; } else { Options &= ~ConfigurationPropertyOptions.IsRequired; } } } public bool IsKey { get { return ((Options & ConfigurationPropertyOptions.IsKey) != 0); } set { if (value == true) { Options |= ConfigurationPropertyOptions.IsKey; } else { Options &= ~ConfigurationPropertyOptions.IsKey; } } } } } // 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
- __Filters.cs
- ServerIdentity.cs
- Walker.cs
- Panel.cs
- ScrollBarAutomationPeer.cs
- _SpnDictionary.cs
- UrlMappingCollection.cs
- TypeUsageBuilder.cs
- ConsumerConnectionPoint.cs
- XmlSortKeyAccumulator.cs
- ComponentEditorForm.cs
- IdnElement.cs
- OleDbPermission.cs
- QuadTree.cs
- AmbientLight.cs
- LinqDataSourceContextEventArgs.cs
- VideoDrawing.cs
- MethodToken.cs
- IfAction.cs
- SelectionEditingBehavior.cs
- SimpleType.cs
- PeerCollaborationPermission.cs
- WinEventTracker.cs
- DecoderBestFitFallback.cs
- HtmlCommandAdapter.cs
- SizeF.cs
- ToolStripPanelDesigner.cs
- ToolStripContentPanelDesigner.cs
- OutputWindow.cs
- PostBackTrigger.cs
- TypeListConverter.cs
- DiscardableAttribute.cs
- CreateParams.cs
- ElementHost.cs
- TemplateField.cs
- DLinqDataModelProvider.cs
- CodeDirectiveCollection.cs
- RecommendedAsConfigurableAttribute.cs
- _ConnectOverlappedAsyncResult.cs
- XPathItem.cs
- HttpListenerRequest.cs
- ValidationErrorCollection.cs
- SessionSwitchEventArgs.cs
- DocumentViewerBaseAutomationPeer.cs
- MethodMessage.cs
- SqlBulkCopyColumnMapping.cs
- Encoder.cs
- FileSystemEventArgs.cs
- FtpWebResponse.cs
- UnregisterInfo.cs
- OdbcRowUpdatingEvent.cs
- LoginView.cs
- HostExecutionContextManager.cs
- KeyPressEvent.cs
- XmlNodeReader.cs
- Compensation.cs
- AffineTransform3D.cs
- LoadItemsEventArgs.cs
- LineUtil.cs
- TypographyProperties.cs
- StylusPointPropertyInfo.cs
- BitmapScalingModeValidation.cs
- XamlDesignerSerializationManager.cs
- DodSequenceMerge.cs
- relpropertyhelper.cs
- AppDomainManager.cs
- ParseChildrenAsPropertiesAttribute.cs
- System.Data_BID.cs
- InputBinding.cs
- SelectionProviderWrapper.cs
- XmlAttributes.cs
- DataRelation.cs
- StateManagedCollection.cs
- TdsParserStateObject.cs
- EnumValAlphaComparer.cs
- ToolStripRenderEventArgs.cs
- SoapReflectionImporter.cs
- ToolStripDropTargetManager.cs
- RuntimeIdentifierPropertyAttribute.cs
- ComponentRenameEvent.cs
- PropertyToken.cs
- SapiRecoContext.cs
- DrawingContextFlattener.cs
- SecurityPermission.cs
- TimeSpanFormat.cs
- tooltip.cs
- ReadOnlyCollectionBase.cs
- DataGridViewCellPaintingEventArgs.cs
- ConfigXmlComment.cs
- CodeTypeDeclaration.cs
- GuidelineCollection.cs
- DesignSurfaceManager.cs
- StreamAsIStream.cs
- VoiceChangeEventArgs.cs
- CustomAttributeBuilder.cs
- ReadOnlyPropertyMetadata.cs
- TextTreeText.cs
- X509Certificate2Collection.cs
- Literal.cs
- Grid.cs