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
- PersonalizablePropertyEntry.cs
- JapaneseCalendar.cs
- DataDocumentXPathNavigator.cs
- RadioButtonPopupAdapter.cs
- _OverlappedAsyncResult.cs
- PrintPreviewGraphics.cs
- COM2ExtendedTypeConverter.cs
- SoapSchemaExporter.cs
- MobileCapabilities.cs
- odbcmetadatafactory.cs
- ListBindingConverter.cs
- ProfileServiceManager.cs
- RemotingSurrogateSelector.cs
- HttpPostServerProtocol.cs
- HtmlButton.cs
- SimpleHandlerBuildProvider.cs
- RuntimeIdentifierPropertyAttribute.cs
- PenCursorManager.cs
- PointValueSerializer.cs
- SafeMemoryMappedFileHandle.cs
- AdCreatedEventArgs.cs
- HtmlLiteralTextAdapter.cs
- infer.cs
- ManagedWndProcTracker.cs
- sitestring.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- XPathSingletonIterator.cs
- DummyDataSource.cs
- SqlBinder.cs
- AppSettingsExpressionBuilder.cs
- ProxyWebPart.cs
- QuaternionRotation3D.cs
- EntityConnection.cs
- TextTreeInsertUndoUnit.cs
- DomNameTable.cs
- X509RawDataKeyIdentifierClause.cs
- ToolConsole.cs
- OletxTransactionManager.cs
- Statements.cs
- HtmlInputPassword.cs
- UnicodeEncoding.cs
- StorageEndPropertyMapping.cs
- HttpApplicationFactory.cs
- SqlDataReader.cs
- LinearQuaternionKeyFrame.cs
- RegexGroupCollection.cs
- StylusButtonCollection.cs
- ConstructorBuilder.cs
- IdentityModelDictionary.cs
- RowUpdatingEventArgs.cs
- DataKey.cs
- EntityDataSourceView.cs
- InputProcessorProfiles.cs
- CompressedStack.cs
- DebugControllerThread.cs
- GestureRecognizer.cs
- HtmlAnchor.cs
- TypedAsyncResult.cs
- NetMsmqBinding.cs
- KeyConverter.cs
- ObjectTokenCategory.cs
- AnchorEditor.cs
- ModelFunctionTypeElement.cs
- _NestedSingleAsyncResult.cs
- SHA1Managed.cs
- Region.cs
- MsmqReceiveParameters.cs
- PropertyEntry.cs
- SessionStateSection.cs
- PropertyInfoSet.cs
- TimeSpanValidatorAttribute.cs
- SQLInt16Storage.cs
- XslTransform.cs
- SizeAnimationClockResource.cs
- MsdtcWrapper.cs
- HtmlTable.cs
- VectorAnimationBase.cs
- WrappedKeySecurityToken.cs
- WindowsTitleBar.cs
- XmlText.cs
- dsa.cs
- MemberAssignment.cs
- LOSFormatter.cs
- DrawItemEvent.cs
- Config.cs
- CodeRegionDirective.cs
- InkSerializer.cs
- WhiteSpaceTrimStringConverter.cs
- RequestCache.cs
- Boolean.cs
- MultiAsyncResult.cs
- Rss20ItemFormatter.cs
- MetadataArtifactLoaderResource.cs
- SmiTypedGetterSetter.cs
- FilteredAttributeCollection.cs
- SocketManager.cs
- XDeferredAxisSource.cs
- AssemblyUtil.cs
- SecurityAttributeGenerationHelper.cs
- ClusterSafeNativeMethods.cs