Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / VersionValidator.cs / 1305376 / VersionValidator.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.Configuration {
using System;
using System.Configuration;
internal sealed class VersionValidator : ConfigurationValidatorBase {
private readonly Version _minimumVersion;
public VersionValidator(Version minimumVersion) {
_minimumVersion = minimumVersion;
}
public override bool CanValidate(Type type) {
return typeof(Version).Equals(type);
}
public override void Validate(object value) {
if (value == null) {
throw new ArgumentNullException("value");
}
if (((Version)value) < _minimumVersion) {
throw new ArgumentOutOfRangeException("value",
SR.GetString(SR.Config_control_rendering_compatibility_version_is_less_than_minimum_version));
}
}
}
}
// 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
- FontUnitConverter.cs
- IssuedTokenClientCredential.cs
- TemplatedMailWebEventProvider.cs
- Point.cs
- MetadataArtifactLoader.cs
- AssemblyContextControlItem.cs
- BatchServiceHost.cs
- SiteMapNodeItem.cs
- Variant.cs
- CodeSnippetTypeMember.cs
- ObjectConverter.cs
- RSACryptoServiceProvider.cs
- EdmSchemaAttribute.cs
- ViewCellSlot.cs
- SQLStringStorage.cs
- InputLanguageProfileNotifySink.cs
- XmlNamespaceMappingCollection.cs
- MatrixTransform.cs
- ItemType.cs
- SortedList.cs
- Walker.cs
- LayoutUtils.cs
- UIElement.cs
- ImageAttributes.cs
- OpCopier.cs
- BitmapFrameDecode.cs
- Filter.cs
- JoinQueryOperator.cs
- TextStore.cs
- OleDbCommandBuilder.cs
- IriParsingElement.cs
- XmlQueryTypeFactory.cs
- DataGridComponentEditor.cs
- StringOutput.cs
- SQLCharsStorage.cs
- StandardCommands.cs
- PropertyDescriptors.cs
- CoTaskMemUnicodeSafeHandle.cs
- NotificationContext.cs
- LogRestartAreaEnumerator.cs
- ObjectContextServiceProvider.cs
- KeyConstraint.cs
- Drawing.cs
- PropertyDescriptors.cs
- Evaluator.cs
- SizeChangedEventArgs.cs
- FileDialogCustomPlace.cs
- SafeWaitHandle.cs
- FontStretches.cs
- XMLSyntaxException.cs
- ListDataBindEventArgs.cs
- WindowsAuthenticationEventArgs.cs
- GridViewDeletedEventArgs.cs
- AbstractExpressions.cs
- ReliableSessionBindingElement.cs
- WindowsPrincipal.cs
- OSFeature.cs
- WindowsButton.cs
- DataGridRow.cs
- BulletedList.cs
- UpdateRecord.cs
- ClientUriBehavior.cs
- Clause.cs
- XmlSerializerVersionAttribute.cs
- MultilineStringEditor.cs
- MetadataItemEmitter.cs
- ChunkedMemoryStream.cs
- CalendarButton.cs
- CodeAccessSecurityEngine.cs
- Floater.cs
- XmlSchemaComplexContentRestriction.cs
- SmtpTransport.cs
- RoleManagerSection.cs
- DependencyProperty.cs
- MouseGesture.cs
- CacheVirtualItemsEvent.cs
- DigestTraceRecordHelper.cs
- ManagedFilter.cs
- DefaultSerializationProviderAttribute.cs
- XmlDomTextWriter.cs
- _NativeSSPI.cs
- ItemContainerProviderWrapper.cs
- Models.cs
- connectionpool.cs
- SharedPerformanceCounter.cs
- FixedSOMPage.cs
- ZipIOLocalFileHeader.cs
- StringExpressionSet.cs
- DataGridViewHeaderCell.cs
- LocalServiceSecuritySettings.cs
- SafeTimerHandle.cs
- DataStreams.cs
- CollectionConverter.cs
- Repeater.cs
- CustomWebEventKey.cs
- BatchParser.cs
- ToolStripDropDownMenu.cs
- BamlLocalizableResource.cs
- DataGridPagerStyle.cs
- DbQueryCommandTree.cs