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
- ParameterCollection.cs
- SafePipeHandle.cs
- ISAPIWorkerRequest.cs
- HtmlShim.cs
- RecognitionResult.cs
- UriExt.cs
- XmlSerializerObjectSerializer.cs
- SessionEndingEventArgs.cs
- Compiler.cs
- SubqueryRules.cs
- SortAction.cs
- wgx_commands.cs
- StateWorkerRequest.cs
- SchemaTableColumn.cs
- MonthChangedEventArgs.cs
- OdbcTransaction.cs
- DefaultSection.cs
- _SslState.cs
- UrlPropertyAttribute.cs
- AuthenticationModuleElementCollection.cs
- BinaryReader.cs
- FamilyMap.cs
- MessageRpc.cs
- DataServiceConfiguration.cs
- RenderData.cs
- AsymmetricKeyExchangeFormatter.cs
- ThousandthOfEmRealPoints.cs
- InstanceDescriptor.cs
- MatrixIndependentAnimationStorage.cs
- BaseAddressElementCollection.cs
- CopyNodeSetAction.cs
- SynchronousChannel.cs
- StateWorkerRequest.cs
- validation.cs
- InsufficientExecutionStackException.cs
- WindowsStatic.cs
- ViewGenResults.cs
- BitmapCodecInfoInternal.cs
- SafeMILHandle.cs
- XamlTypeMapperSchemaContext.cs
- AuthenticatedStream.cs
- ClrPerspective.cs
- FindCompletedEventArgs.cs
- BatchParser.cs
- CompiledQueryCacheKey.cs
- SingleKeyFrameCollection.cs
- SeekStoryboard.cs
- WebRequestModuleElement.cs
- SiteMapPath.cs
- PenLineCapValidation.cs
- System.Data.OracleClient_BID.cs
- XsltCompileContext.cs
- StreamResourceInfo.cs
- HwndKeyboardInputProvider.cs
- HMACSHA256.cs
- SoapProcessingBehavior.cs
- InProcStateClientManager.cs
- PriorityBindingExpression.cs
- BuildTopDownAttribute.cs
- SoapIncludeAttribute.cs
- SqlBuffer.cs
- ReferencedType.cs
- DataGridViewElement.cs
- PerformanceCounterPermissionAttribute.cs
- GeometryGroup.cs
- Rotation3DAnimationBase.cs
- DelimitedListTraceListener.cs
- Events.cs
- NumberSubstitution.cs
- CodeEventReferenceExpression.cs
- LinqDataSourceUpdateEventArgs.cs
- DataFormat.cs
- WindowsAuthenticationEventArgs.cs
- CompiledAction.cs
- SQLMembershipProvider.cs
- InitializerFacet.cs
- DynamicDataExtensions.cs
- CTreeGenerator.cs
- XmlDataContract.cs
- CodeObject.cs
- StorageScalarPropertyMapping.cs
- StreamGeometry.cs
- ToggleButtonAutomationPeer.cs
- FlowPosition.cs
- DataGridViewColumn.cs
- Debug.cs
- BridgeDataRecord.cs
- FormViewRow.cs
- Graphics.cs
- ClientOperation.cs
- DataGridPageChangedEventArgs.cs
- Operator.cs
- GiveFeedbackEventArgs.cs
- XamlValidatingReader.cs
- MulticastDelegate.cs
- SqlProcedureAttribute.cs
- TranslateTransform3D.cs
- ValueType.cs
- _LoggingObject.cs
- GridErrorDlg.cs