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
- DbConnectionPoolIdentity.cs
- LayoutEditorPart.cs
- AddInDeploymentState.cs
- ReachDocumentSequenceSerializerAsync.cs
- PaperSize.cs
- MsmqQueue.cs
- AuthStoreRoleProvider.cs
- DataFieldConverter.cs
- ForceCopyBuildProvider.cs
- AutomationProperties.cs
- EmptyEnumerable.cs
- XmlQueryStaticData.cs
- TextProperties.cs
- DataTableNewRowEvent.cs
- ValueQuery.cs
- NodeLabelEditEvent.cs
- EffectiveValueEntry.cs
- ListGeneralPage.cs
- MouseActionValueSerializer.cs
- ProxyAssemblyNotLoadedException.cs
- Drawing.cs
- UIElement3D.cs
- SQLChars.cs
- ColumnCollection.cs
- Source.cs
- XmlValidatingReaderImpl.cs
- BaseTemplateBuildProvider.cs
- ProxyManager.cs
- SectionInput.cs
- MaskInputRejectedEventArgs.cs
- GrammarBuilderWildcard.cs
- _ListenerResponseStream.cs
- CodeDirectionExpression.cs
- HttpCachePolicy.cs
- ComplusEndpointConfigContainer.cs
- HandledEventArgs.cs
- FunctionImportMapping.cs
- PolicyManager.cs
- CounterCreationData.cs
- ServiceElementCollection.cs
- SynchronizingStream.cs
- IsolatedStoragePermission.cs
- Baml2006KeyRecord.cs
- SHA256.cs
- SessionConnectionReader.cs
- ArithmeticException.cs
- MailWebEventProvider.cs
- HtmlButton.cs
- Positioning.cs
- Propagator.cs
- SoundPlayerAction.cs
- rsa.cs
- SystemIPv4InterfaceProperties.cs
- Subset.cs
- SendMailErrorEventArgs.cs
- RawStylusInputCustomDataList.cs
- WebPartVerbCollection.cs
- LicFileLicenseProvider.cs
- SystemIPInterfaceProperties.cs
- DependencyPropertyValueSerializer.cs
- ModelPerspective.cs
- SoapInteropTypes.cs
- Int32Storage.cs
- HyperLinkStyle.cs
- SecurityHeader.cs
- IsolatedStorageException.cs
- TcpClientSocketManager.cs
- WaitHandleCannotBeOpenedException.cs
- KerberosSecurityTokenAuthenticator.cs
- InstancePersistenceException.cs
- OpCodes.cs
- Select.cs
- Timer.cs
- webeventbuffer.cs
- Blend.cs
- TrackingLocation.cs
- ConfigUtil.cs
- ResolveResponseInfo.cs
- XmlSchemaNotation.cs
- FormatterServices.cs
- HttpRuntimeSection.cs
- BaseDataList.cs
- MailSettingsSection.cs
- Label.cs
- Boolean.cs
- XmlEntity.cs
- OdbcConnectionString.cs
- XhtmlTextWriter.cs
- XamlToRtfWriter.cs
- SqlNamer.cs
- OpenTypeLayout.cs
- TransformerTypeCollection.cs
- StrokeNodeData.cs
- QilSortKey.cs
- ISessionStateStore.cs
- ADMembershipProvider.cs
- SharedConnectionInfo.cs
- BitmapImage.cs
- PropertyValueEditor.cs
- SqlInfoMessageEvent.cs