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
- Italic.cs
- TextEditorTables.cs
- ColorMap.cs
- WinFormsSecurity.cs
- IntPtr.cs
- oledbmetadatacollectionnames.cs
- AppearanceEditorPart.cs
- ExpressionBuilder.cs
- RefreshEventArgs.cs
- DeleteIndexBinder.cs
- Byte.cs
- FileStream.cs
- Command.cs
- WorkflowRuntimeServiceElementCollection.cs
- EventData.cs
- DataServiceQueryException.cs
- BooleanProjectedSlot.cs
- InputLangChangeRequestEvent.cs
- StorageInfo.cs
- PasswordTextContainer.cs
- SafePointer.cs
- WebBrowser.cs
- IsolatedStorage.cs
- InputReportEventArgs.cs
- EntityDataSourceEntityTypeFilterItem.cs
- UIElementParagraph.cs
- LassoHelper.cs
- InputReport.cs
- BaseTransportHeaders.cs
- EntityClientCacheEntry.cs
- Rect3D.cs
- MediaPlayer.cs
- GuidConverter.cs
- NetStream.cs
- TextBlock.cs
- PriorityRange.cs
- Transform.cs
- SQLInt64Storage.cs
- IndexedGlyphRun.cs
- _ListenerAsyncResult.cs
- PhysicalFontFamily.cs
- QilSortKey.cs
- SpellerStatusTable.cs
- WebServicesInteroperability.cs
- PartialCachingControl.cs
- RuntimeCompatibilityAttribute.cs
- DynamicMethod.cs
- OdbcInfoMessageEvent.cs
- StreamWriter.cs
- MultipleViewProviderWrapper.cs
- httpapplicationstate.cs
- GenerateHelper.cs
- Monitor.cs
- BitmapEffectDrawing.cs
- MatrixAnimationUsingPath.cs
- TargetControlTypeAttribute.cs
- ButtonChrome.cs
- ListViewItemMouseHoverEvent.cs
- ReadWriteObjectLock.cs
- FederatedMessageSecurityOverHttpElement.cs
- ListMarkerSourceInfo.cs
- PriorityItem.cs
- LogStream.cs
- UnsafeNativeMethods.cs
- SocketPermission.cs
- Point3DCollection.cs
- TaskFormBase.cs
- Command.cs
- RemoveStoryboard.cs
- UnhandledExceptionEventArgs.cs
- ObservableCollection.cs
- WindowsFont.cs
- StatusBarAutomationPeer.cs
- MultipleViewPattern.cs
- ClientProxyGenerator.cs
- BindingMAnagerBase.cs
- PageCatalogPart.cs
- ProcessModelSection.cs
- MdiWindowListItemConverter.cs
- ComponentEvent.cs
- StyleCollectionEditor.cs
- SQLBinary.cs
- SystemNetworkInterface.cs
- FlowLayoutPanel.cs
- BevelBitmapEffect.cs
- AudioLevelUpdatedEventArgs.cs
- FlatButtonAppearance.cs
- ReachDocumentPageSerializer.cs
- ExpressionPrinter.cs
- WSSecurityOneDotZeroSendSecurityHeader.cs
- ConfigurationManagerHelper.cs
- PropertyDescriptorCollection.cs
- DSASignatureFormatter.cs
- Dynamic.cs
- BrushValueSerializer.cs
- CodeDirectiveCollection.cs
- Path.cs
- DataGridViewEditingControlShowingEventArgs.cs
- CodeTypeMember.cs
- SatelliteContractVersionAttribute.cs