Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- CmsInterop.cs
- OperationAbortedException.cs
- SharedPersonalizationStateInfo.cs
- InternalBufferOverflowException.cs
- InvokeHandlers.cs
- PolicyManager.cs
- JapaneseLunisolarCalendar.cs
- AtomContentProperty.cs
- KeyProperty.cs
- StatusBarPanel.cs
- RequestCachingSection.cs
- GridView.cs
- PenThreadWorker.cs
- HandlerMappingMemo.cs
- SqlConnection.cs
- GenericTextProperties.cs
- KeyTimeConverter.cs
- CommandField.cs
- SkinIDTypeConverter.cs
- SqlPersonalizationProvider.cs
- InputLanguageEventArgs.cs
- FloaterParagraph.cs
- QilChoice.cs
- WebPartTransformerAttribute.cs
- StrokeCollectionDefaultValueFactory.cs
- InkCanvasSelectionAdorner.cs
- ACE.cs
- PropertyDescriptorCollection.cs
- XhtmlConformanceSection.cs
- NetSectionGroup.cs
- DataGridViewColumnHeaderCell.cs
- ErrorStyle.cs
- TextOnlyOutput.cs
- BigInt.cs
- WorkItem.cs
- bidPrivateBase.cs
- _ConnectStream.cs
- SetterBaseCollection.cs
- AttachedPropertyInfo.cs
- Win32PrintDialog.cs
- JapaneseLunisolarCalendar.cs
- Privilege.cs
- SpellerHighlightLayer.cs
- BaseCAMarshaler.cs
- templategroup.cs
- ConfigsHelper.cs
- ObjectRef.cs
- PolyQuadraticBezierSegment.cs
- HttpClientCertificate.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- PropertyIdentifier.cs
- ClockController.cs
- GeneralTransform3D.cs
- SQLResource.cs
- ObjectPropertyMapping.cs
- Int32.cs
- SafeArchiveContext.cs
- UrlMappingsModule.cs
- CaseInsensitiveHashCodeProvider.cs
- TransportChannelFactory.cs
- FontUnit.cs
- PromptStyle.cs
- ConfigurationSectionGroup.cs
- ContainerParagraph.cs
- CodeAttachEventStatement.cs
- FragmentQuery.cs
- ConfigurationElementCollection.cs
- EntityDataSourceSelectedEventArgs.cs
- MaterialCollection.cs
- ExplicitDiscriminatorMap.cs
- ProxyWebPartManager.cs
- EventLogPermissionEntry.cs
- BuilderPropertyEntry.cs
- MissingSatelliteAssemblyException.cs
- PocoPropertyAccessorStrategy.cs
- HttpRequest.cs
- TemplateControlParser.cs
- CodeSubDirectory.cs
- TreeViewItem.cs
- KerberosSecurityTokenAuthenticator.cs
- TagElement.cs
- ObjectStorage.cs
- WebExceptionStatus.cs
- DataServiceException.cs
- DelegateInArgument.cs
- Frame.cs
- HttpPostProtocolReflector.cs
- WebPartMinimizeVerb.cs
- NumericUpDown.cs
- GenericNameHandler.cs
- MoveSizeWinEventHandler.cs
- CompiledRegexRunnerFactory.cs
- BinaryObjectWriter.cs
- ServiceModelSectionGroup.cs
- DisposableCollectionWrapper.cs
- RedirectionProxy.cs
- SqlConnectionPoolGroupProviderInfo.cs
- SelfIssuedSamlTokenFactory.cs
- Repeater.cs
- Color.cs