Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Configuration / System / Configuration / ConfigurationElementProperty.cs / 1 / ConfigurationElementProperty.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 { // Although in Whidbey this class contain just one property, but we still do this this way, // instead of exposing a Validator property in ConfigurationElement, because if we need // another property in the future we'll expand this ElementProperty class rather than adding a // new overridable on ConfigurationElement public sealed class ConfigurationElementProperty { private ConfigurationValidatorBase _validator; public ConfigurationElementProperty(ConfigurationValidatorBase validator) { if (validator == null) { throw new ArgumentNullException("validator"); } _validator = validator; } public ConfigurationValidatorBase Validator { get { return _validator; } } } } // 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 { // Although in Whidbey this class contain just one property, but we still do this this way, // instead of exposing a Validator property in ConfigurationElement, because if we need // another property in the future we'll expand this ElementProperty class rather than adding a // new overridable on ConfigurationElement public sealed class ConfigurationElementProperty { private ConfigurationValidatorBase _validator; public ConfigurationElementProperty(ConfigurationValidatorBase validator) { if (validator == null) { throw new ArgumentNullException("validator"); } _validator = validator; } public ConfigurationValidatorBase Validator { get { return _validator; } } } } // 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
- OptimizedTemplateContentHelper.cs
- DiscoveryService.cs
- BitmapCache.cs
- ParameterCollection.cs
- FilterUserControlBase.cs
- SafeFileMappingHandle.cs
- ClientBuildManagerCallback.cs
- Maps.cs
- SinglePageViewer.cs
- CfgParser.cs
- DataShape.cs
- HttpContextWrapper.cs
- VisualStyleElement.cs
- LogSwitch.cs
- PrimaryKeyTypeConverter.cs
- SequenceDesigner.cs
- RawStylusInputCustomDataList.cs
- ListViewTableCell.cs
- InstanceCreationEditor.cs
- WebPartMinimizeVerb.cs
- assertwrapper.cs
- HttpCacheVaryByContentEncodings.cs
- IIS7WorkerRequest.cs
- PackageProperties.cs
- SqlClientWrapperSmiStream.cs
- TextSyndicationContent.cs
- SchemaAttDef.cs
- StringCollection.cs
- ResourceDisplayNameAttribute.cs
- RightsManagementPermission.cs
- DataGridParentRows.cs
- HtmlObjectListAdapter.cs
- SourceFileBuildProvider.cs
- EmptyEnumerator.cs
- FormViewCommandEventArgs.cs
- SafeHandles.cs
- SwitchLevelAttribute.cs
- XmlName.cs
- StringAnimationUsingKeyFrames.cs
- GlobalAclOperationRequirement.cs
- AutomationPropertyInfo.cs
- RenderOptions.cs
- LocalIdKeyIdentifierClause.cs
- EnumValidator.cs
- SystemMulticastIPAddressInformation.cs
- IUnknownConstantAttribute.cs
- WindowsPrincipal.cs
- MetabaseServerConfig.cs
- ReadContentAsBinaryHelper.cs
- UIElementIsland.cs
- PackageDigitalSignature.cs
- sqlinternaltransaction.cs
- GlyphCache.cs
- ToolboxDataAttribute.cs
- COMException.cs
- DataGridTableCollection.cs
- ColorConverter.cs
- RbTree.cs
- UriTemplateClientFormatter.cs
- XslAst.cs
- InvalidAsynchronousStateException.cs
- CategoryAttribute.cs
- ContainerSelectorActiveEvent.cs
- OperationPickerDialog.designer.cs
- DataComponentMethodGenerator.cs
- MatrixKeyFrameCollection.cs
- EventEntry.cs
- SeparatorAutomationPeer.cs
- XPathItem.cs
- MessageProtectionOrder.cs
- NativeCompoundFileAPIs.cs
- ElementMarkupObject.cs
- SchemaUtility.cs
- RunClient.cs
- CompilerCollection.cs
- StrokeCollectionDefaultValueFactory.cs
- EditableTreeList.cs
- FieldInfo.cs
- InputLanguageEventArgs.cs
- NavigatorInput.cs
- NameSpaceExtractor.cs
- SimpleBitVector32.cs
- MultiByteCodec.cs
- WrappedIUnknown.cs
- DesignTimeParseData.cs
- CompoundFileDeflateTransform.cs
- GrammarBuilderDictation.cs
- SlipBehavior.cs
- XmlNodeChangedEventArgs.cs
- MessageHeaderException.cs
- HttpDebugHandler.cs
- Column.cs
- Substitution.cs
- XmlEncodedRawTextWriter.cs
- Solver.cs
- UnauthorizedWebPart.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- DataControlCommands.cs
- ToolBarButtonClickEvent.cs
- RNGCryptoServiceProvider.cs