Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- CssClassPropertyAttribute.cs
- ColumnHeaderConverter.cs
- VirtualPath.cs
- UnitControl.cs
- OuterGlowBitmapEffect.cs
- parserscommon.cs
- FilterQuery.cs
- OracleNumber.cs
- OleDbCommandBuilder.cs
- ListViewGroupConverter.cs
- RowsCopiedEventArgs.cs
- HttpApplicationStateBase.cs
- HGlobalSafeHandle.cs
- PtsCache.cs
- Policy.cs
- SslStream.cs
- ToolStripItemImageRenderEventArgs.cs
- ImageButton.cs
- Subtree.cs
- EntityDataSourceMemberPath.cs
- HtmlControlDesigner.cs
- VoiceObjectToken.cs
- ObjectQueryState.cs
- ListManagerBindingsCollection.cs
- NamespaceTable.cs
- ExpressionPrinter.cs
- UnsafeCollabNativeMethods.cs
- HostDesigntimeLicenseContext.cs
- CompilerErrorCollection.cs
- FromRequest.cs
- ImageCreator.cs
- SwitchCase.cs
- BindValidator.cs
- BackStopAuthenticationModule.cs
- XmlWhitespace.cs
- UserControl.cs
- RuntimeCompatibilityAttribute.cs
- ChangeDirector.cs
- SafeViewOfFileHandle.cs
- SQLInt64Storage.cs
- InvokeProviderWrapper.cs
- MarkupExtensionReturnTypeAttribute.cs
- EventLogPermission.cs
- XmlSchemaProviderAttribute.cs
- EntityDataSourceWizardForm.cs
- SchemaAttDef.cs
- X509CertificateValidator.cs
- EventTask.cs
- ManualResetEventSlim.cs
- StreamInfo.cs
- ToolStripProgressBar.cs
- PageParser.cs
- XmlUrlEditor.cs
- DataGridCell.cs
- Context.cs
- Math.cs
- MsmqIntegrationMessagePool.cs
- SamlAuthenticationStatement.cs
- TriState.cs
- BoundsDrawingContextWalker.cs
- RightsManagementInformation.cs
- Type.cs
- validation.cs
- CompositeCollection.cs
- QueryExtender.cs
- LeafCellTreeNode.cs
- AttachedAnnotationChangedEventArgs.cs
- IxmlLineInfo.cs
- PasswordDeriveBytes.cs
- DataGridViewRowConverter.cs
- ProtocolElementCollection.cs
- OleDbConnectionInternal.cs
- PermissionAttributes.cs
- LocationUpdates.cs
- IncrementalHitTester.cs
- EntitySetDataBindingList.cs
- Transaction.cs
- GenericNameHandler.cs
- SafeNativeMethods.cs
- Int64Converter.cs
- DnsPermission.cs
- SrgsGrammarCompiler.cs
- ISFTagAndGuidCache.cs
- XPathArrayIterator.cs
- SymLanguageVendor.cs
- MemberPath.cs
- HttpListenerContext.cs
- EdmError.cs
- PropertyCondition.cs
- BindableTemplateBuilder.cs
- _NTAuthentication.cs
- StylusDownEventArgs.cs
- SiteMembershipCondition.cs
- SecurityTokenParametersEnumerable.cs
- DropDownButton.cs
- CategoryAttribute.cs
- ConfigurationLocationCollection.cs
- CheckedPointers.cs
- DataBoundLiteralControl.cs
- AppendHelper.cs