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
- SqlError.cs
- SqlNotificationRequest.cs
- ExpressionConverter.cs
- RangeValuePattern.cs
- ChangeNode.cs
- Floater.cs
- VerticalAlignConverter.cs
- Automation.cs
- ContextProperty.cs
- BeginCreateSecurityTokenRequest.cs
- DataServiceQueryException.cs
- NativeMethods.cs
- TextDecorationCollection.cs
- FileIOPermission.cs
- AutomationPattern.cs
- UIElementPropertyUndoUnit.cs
- AuthenticationConfig.cs
- DependencyPropertyValueSerializer.cs
- Point3DCollectionConverter.cs
- ColumnBinding.cs
- Size3D.cs
- FirstMatchCodeGroup.cs
- StringToken.cs
- SqlConnectionManager.cs
- BindingExpressionBase.cs
- SizeKeyFrameCollection.cs
- OptimizedTemplateContentHelper.cs
- TimeoutHelper.cs
- ParameterElementCollection.cs
- HttpListenerRequest.cs
- ProcessModuleDesigner.cs
- MediaEntryAttribute.cs
- ReliableSession.cs
- SmiEventSink.cs
- SaveFileDialog.cs
- EntityObject.cs
- CharacterBuffer.cs
- CompiledQuery.cs
- CodeTypeConstructor.cs
- ClonableStack.cs
- SecurityException.cs
- BindingSource.cs
- TraceSection.cs
- UmAlQuraCalendar.cs
- UnsafeNativeMethods.cs
- ParameterInfo.cs
- LinearGradientBrush.cs
- StylusShape.cs
- MethodToken.cs
- InlinedAggregationOperatorEnumerator.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- ComponentManagerBroker.cs
- XhtmlTextWriter.cs
- InputLanguageEventArgs.cs
- IsolatedStorageFile.cs
- DependencyObject.cs
- ConfigurationLocation.cs
- CodeLabeledStatement.cs
- BooleanFunctions.cs
- DataGridBoundColumn.cs
- JsonWriter.cs
- _AutoWebProxyScriptHelper.cs
- BindingExpressionBase.cs
- OrderByExpression.cs
- AlphabeticalEnumConverter.cs
- WebCategoryAttribute.cs
- CommonGetThemePartSize.cs
- VarInfo.cs
- Route.cs
- ComplexTypeEmitter.cs
- HttpCacheParams.cs
- EntityDataSourceQueryBuilder.cs
- MarshalDirectiveException.cs
- TTSEngineTypes.cs
- XmlSerializationWriter.cs
- DataMisalignedException.cs
- ErrorFormatter.cs
- WebMessageBodyStyleHelper.cs
- EventSchemaTraceListener.cs
- GetIndexBinder.cs
- ToolBarButtonClickEvent.cs
- MouseEventArgs.cs
- StrokeNodeData.cs
- BitmapScalingModeValidation.cs
- DiscoveryDocumentLinksPattern.cs
- EventEntry.cs
- MatrixKeyFrameCollection.cs
- HScrollProperties.cs
- CellConstantDomain.cs
- DynamicILGenerator.cs
- ClientBuildManager.cs
- HtmlToClrEventProxy.cs
- TextEditorThreadLocalStore.cs
- EDesignUtil.cs
- TimersDescriptionAttribute.cs
- StrongNameKeyPair.cs
- WindowVisualStateTracker.cs
- OAVariantLib.cs
- CookieHandler.cs
- WebBrowserBase.cs