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
- AddressHeaderCollectionElement.cs
- compensatingcollection.cs
- DocumentScope.cs
- StyleSelector.cs
- WmlValidationSummaryAdapter.cs
- BCLDebug.cs
- OleStrCAMarshaler.cs
- VisualCollection.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- TransactionTraceIdentifier.cs
- BufferBuilder.cs
- ProtocolsConfigurationEntry.cs
- ModelUtilities.cs
- SizeValueSerializer.cs
- RenderTargetBitmap.cs
- DelegateBodyWriter.cs
- Part.cs
- ContainerUtilities.cs
- RelationshipWrapper.cs
- DataColumnPropertyDescriptor.cs
- HttpFileCollectionBase.cs
- HttpListenerPrefixCollection.cs
- ControlParameter.cs
- FastEncoderWindow.cs
- DataServices.cs
- Size.cs
- LockedBorderGlyph.cs
- PostBackTrigger.cs
- PageThemeParser.cs
- BuildProvidersCompiler.cs
- CodeParameterDeclarationExpression.cs
- ListItemCollection.cs
- GeneralTransformCollection.cs
- GenerateHelper.cs
- BuilderElements.cs
- ClientCredentialsSecurityTokenManager.cs
- GenerateHelper.cs
- CornerRadiusConverter.cs
- ConfigXmlAttribute.cs
- HttpDictionary.cs
- LabelEditEvent.cs
- BinHexEncoder.cs
- Subtree.cs
- FileInfo.cs
- FragmentQueryKB.cs
- DataGridViewControlCollection.cs
- RemoteWebConfigurationHostStream.cs
- TypeConverterHelper.cs
- ToolStripDesigner.cs
- counter.cs
- OpenTypeCommon.cs
- SmtpNegotiateAuthenticationModule.cs
- ADMembershipUser.cs
- BinaryObjectWriter.cs
- CommandLibraryHelper.cs
- FontFamilyConverter.cs
- MouseBinding.cs
- ClickablePoint.cs
- RowBinding.cs
- securestring.cs
- HttpConfigurationSystem.cs
- PropertyMapper.cs
- PropertyValueChangedEvent.cs
- MarkedHighlightComponent.cs
- ItemsPresenter.cs
- SqlConnectionManager.cs
- ActivityInstance.cs
- ContentElement.cs
- StringWriter.cs
- sqlstateclientmanager.cs
- ProtocolsConfiguration.cs
- OrderByExpression.cs
- XamlRtfConverter.cs
- CacheModeConverter.cs
- UIElementIsland.cs
- dataobject.cs
- DuplicateWaitObjectException.cs
- PaperSize.cs
- FloaterBaseParaClient.cs
- baseaxisquery.cs
- Evidence.cs
- DynamicAttribute.cs
- AncillaryOps.cs
- GridView.cs
- infer.cs
- CachedPathData.cs
- Freezable.cs
- CheckedListBox.cs
- RegistrySecurity.cs
- ConfigurationSettings.cs
- followingquery.cs
- login.cs
- StructuredTypeEmitter.cs
- HttpStreamMessage.cs
- Clipboard.cs
- VirtualDirectoryMappingCollection.cs
- DocumentApplication.cs
- IndependentlyAnimatedPropertyMetadata.cs
- Comparer.cs
- DispatcherFrame.cs