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
- ConfigurationSettings.cs
- PlainXmlWriter.cs
- Popup.cs
- HttpCapabilitiesBase.cs
- Positioning.cs
- PointHitTestParameters.cs
- ScrollChrome.cs
- RtfFormatStack.cs
- DataColumn.cs
- BindValidator.cs
- Decimal.cs
- RectAnimation.cs
- DesignerWidgets.cs
- StructuralCache.cs
- TemplatedWizardStep.cs
- ConfigUtil.cs
- ChildDocumentBlock.cs
- GridViewAutomationPeer.cs
- TcpWorkerProcess.cs
- Geometry3D.cs
- Restrictions.cs
- Operand.cs
- FrameworkElementAutomationPeer.cs
- DifferencingCollection.cs
- DataTableMapping.cs
- Comparer.cs
- TreeViewHitTestInfo.cs
- LoginStatusDesigner.cs
- CacheForPrimitiveTypes.cs
- EventBuilder.cs
- ObjectDataSourceSelectingEventArgs.cs
- ContextItemManager.cs
- DesignerActionPanel.cs
- XmlDeclaration.cs
- ToolStripDropDownItem.cs
- NativeMethods.cs
- CommandTreeTypeHelper.cs
- AttributeUsageAttribute.cs
- StorageInfo.cs
- SrgsSemanticInterpretationTag.cs
- BufferedGraphicsContext.cs
- BinaryFormatterWriter.cs
- QilScopedVisitor.cs
- FormatSettings.cs
- ImageSourceConverter.cs
- Guid.cs
- CodeDOMUtility.cs
- PointLightBase.cs
- DragStartedEventArgs.cs
- TextAdaptor.cs
- Input.cs
- CultureInfo.cs
- WebContext.cs
- CapacityStreamGeometryContext.cs
- SrgsSubset.cs
- ToggleProviderWrapper.cs
- PreviewKeyDownEventArgs.cs
- DataGridViewTextBoxCell.cs
- PermissionSet.cs
- EventLogPermissionEntryCollection.cs
- ZeroOpNode.cs
- DataGridViewRowPostPaintEventArgs.cs
- SurrogateDataContract.cs
- StandardToolWindows.cs
- XmlSignatureProperties.cs
- TextFragmentEngine.cs
- EventTrigger.cs
- WpfKnownType.cs
- MarshalByRefObject.cs
- ProgressiveCrcCalculatingStream.cs
- HitTestFilterBehavior.cs
- SoapSchemaExporter.cs
- CngProvider.cs
- TargetPerspective.cs
- ReferenceTypeElement.cs
- LogSwitch.cs
- HtmlContainerControl.cs
- TargetInvocationException.cs
- CurrentChangingEventArgs.cs
- StorageComplexPropertyMapping.cs
- ResolveNameEventArgs.cs
- SystemIPAddressInformation.cs
- QuotedPrintableStream.cs
- InternalCache.cs
- CompensateDesigner.cs
- SamlAuthenticationClaimResource.cs
- AttributeCollection.cs
- RewritingSimplifier.cs
- DoubleKeyFrameCollection.cs
- AssociationTypeEmitter.cs
- TabControlCancelEvent.cs
- RegisteredArrayDeclaration.cs
- ObjectDataSourceFilteringEventArgs.cs
- XpsInterleavingPolicy.cs
- Bezier.cs
- WinFormsSecurity.cs
- WasHostedComPlusFactory.cs
- HttpDictionary.cs
- EntityContainer.cs
- Timer.cs