Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- PageBuildProvider.cs
- MultitargetingHelpers.cs
- ThreadNeutralSemaphore.cs
- EngineSiteSapi.cs
- RSAPKCS1KeyExchangeFormatter.cs
- DataGridViewHeaderCell.cs
- OleDbDataReader.cs
- x509utils.cs
- TableLayoutPanelCellPosition.cs
- WebException.cs
- EventLogger.cs
- ThemeableAttribute.cs
- ControlType.cs
- DocumentViewerBase.cs
- CodeParameterDeclarationExpressionCollection.cs
- AppDomain.cs
- BindingWorker.cs
- HostedHttpContext.cs
- PolyQuadraticBezierSegment.cs
- WindowsIdentity.cs
- CurrentChangedEventManager.cs
- ProxyFragment.cs
- activationcontext.cs
- DataGridViewMethods.cs
- ExpressionBinding.cs
- EntitySqlQueryState.cs
- xdrvalidator.cs
- XPathMultyIterator.cs
- HostingEnvironmentException.cs
- ItemAutomationPeer.cs
- RegistrySecurity.cs
- XmlReaderSettings.cs
- WeakReference.cs
- ContainsRowNumberChecker.cs
- HttpBufferlessInputStream.cs
- SQLInt64.cs
- GeneralTransform3DCollection.cs
- ClrPerspective.cs
- DurableInstanceContextProvider.cs
- ActiveXContainer.cs
- MsmqIntegrationSecurity.cs
- RuleInfoComparer.cs
- WmlValidationSummaryAdapter.cs
- ConstraintManager.cs
- ServerValidateEventArgs.cs
- InputReportEventArgs.cs
- LambdaCompiler.Logical.cs
- QilList.cs
- MDIControlStrip.cs
- AutomationPropertyInfo.cs
- LongValidator.cs
- assemblycache.cs
- WebControlsSection.cs
- CssStyleCollection.cs
- DataViewListener.cs
- SqlBulkCopyColumnMappingCollection.cs
- CollectionView.cs
- RemoteHelper.cs
- _TransmitFileOverlappedAsyncResult.cs
- ObfuscationAttribute.cs
- PropertyGeneratedEventArgs.cs
- ItemDragEvent.cs
- CharConverter.cs
- mediaeventargs.cs
- AnonymousIdentificationModule.cs
- dsa.cs
- DbgUtil.cs
- BulletedListDesigner.cs
- PersonalizationState.cs
- QuotedStringFormatReader.cs
- RC2.cs
- DataGridViewColumnTypeEditor.cs
- MessageLogger.cs
- GenericAuthenticationEventArgs.cs
- UIElementParaClient.cs
- ListSourceHelper.cs
- ExpressionDumper.cs
- WebDescriptionAttribute.cs
- CellTreeNodeVisitors.cs
- Size.cs
- TextSegment.cs
- mediaeventshelper.cs
- UnsafeNativeMethods.cs
- DataServiceCollectionOfT.cs
- MILUtilities.cs
- ToolStripContainerDesigner.cs
- EventProviderBase.cs
- DataGridToolTip.cs
- CompiledIdentityConstraint.cs
- EnumType.cs
- WizardPanelChangingEventArgs.cs
- SoapSchemaMember.cs
- SqlCommandSet.cs
- HttpRuntimeSection.cs
- SectionRecord.cs
- ProcessThreadCollection.cs
- SessionStateContainer.cs
- WinInet.cs
- MenuAutomationPeer.cs
- ReferentialConstraint.cs