Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / System / Configuration / ConfigurationElementProperty.cs / 1305376 / 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
- ToolStripSeparatorRenderEventArgs.cs
- WebPartTransformerAttribute.cs
- InkCanvasAutomationPeer.cs
- Vector3dCollection.cs
- CapabilitiesState.cs
- XmlSchemaSequence.cs
- ConfigurationManagerInternalFactory.cs
- XmlSchemaComplexContent.cs
- XmlToDatasetMap.cs
- TimeStampChecker.cs
- VSWCFServiceContractGenerator.cs
- ListCollectionView.cs
- WorkflowViewStateService.cs
- DataObjectMethodAttribute.cs
- ClientConfigurationHost.cs
- ToolStripLabel.cs
- InvokeProviderWrapper.cs
- OracleException.cs
- SocketAddress.cs
- ModelItemCollectionImpl.cs
- DbProviderConfigurationHandler.cs
- CollectionViewGroupRoot.cs
- ObjectDataSourceEventArgs.cs
- DescendantQuery.cs
- EventlogProvider.cs
- mediaclock.cs
- odbcmetadatacollectionnames.cs
- JsonReader.cs
- MenuItemBinding.cs
- ImmutableClientRuntime.cs
- SizeAnimationBase.cs
- PeerTransportCredentialType.cs
- FlagsAttribute.cs
- PreservationFileWriter.cs
- PrimaryKeyTypeConverter.cs
- XmlArrayAttribute.cs
- StatusStrip.cs
- OdbcRowUpdatingEvent.cs
- ComponentFactoryHelpers.cs
- SchemaCollectionCompiler.cs
- SpellerInterop.cs
- XmlSchemaNotation.cs
- DrawingContextWalker.cs
- ComboBoxRenderer.cs
- DataTablePropertyDescriptor.cs
- XmlILAnnotation.cs
- ClientTarget.cs
- XamlInterfaces.cs
- MiniAssembly.cs
- PlaceHolder.cs
- ImageBrush.cs
- SamlAuthenticationStatement.cs
- FontFamily.cs
- IteratorDescriptor.cs
- ConfigPathUtility.cs
- Config.cs
- EmptyEnumerator.cs
- CreationContext.cs
- CursorConverter.cs
- VectorCollection.cs
- DirectoryRootQuery.cs
- DataRecordInternal.cs
- NTAccount.cs
- ReadOnlyCollectionBase.cs
- ProfilePropertySettingsCollection.cs
- RegexGroup.cs
- GenerateHelper.cs
- DefaultValueTypeConverter.cs
- typedescriptorpermission.cs
- TraceLevelStore.cs
- NativeWindow.cs
- TreeWalkHelper.cs
- Visual.cs
- PropertyInfoSet.cs
- ResourcePart.cs
- XmlNodeList.cs
- Native.cs
- CodeAccessPermission.cs
- DetailsViewDeleteEventArgs.cs
- XmlIgnoreAttribute.cs
- TrackingRecordPreFilter.cs
- TcpAppDomainProtocolHandler.cs
- EntityViewGenerator.cs
- X509UI.cs
- OleServicesContext.cs
- ToolStripItemCollection.cs
- AnyAllSearchOperator.cs
- ListSortDescription.cs
- ServiceContractGenerationContext.cs
- FieldAccessException.cs
- LiteralControl.cs
- ErrorsHelper.cs
- WmlLinkAdapter.cs
- ScriptControlManager.cs
- DataTableReaderListener.cs
- Stacktrace.cs
- WindowHelperService.cs
- HttpModuleAction.cs
- OdbcConnectionHandle.cs
- HtmlHead.cs