Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / SupportsEventValidationAttribute.cs / 1 / SupportsEventValidationAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web.UI { using System; using System.Collections; using System.ComponentModel; using System.Diagnostics; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AttributeUsage(AttributeTargets.Class, AllowMultiple=false)] public sealed class SupportsEventValidationAttribute : Attribute { private static Hashtable _typesSupportsEventValidation; static SupportsEventValidationAttribute() { // Create a synchronized wrapper _typesSupportsEventValidation = Hashtable.Synchronized(new Hashtable()); } public SupportsEventValidationAttribute() { } internal static bool SupportsEventValidation(Type type) { object result = _typesSupportsEventValidation[type]; if (result != null) { return (bool)result; } // Check the attributes on the type to see if it supports SupportsEventValidationAttribute // Note that this attribute does not inherit from the base class, since derived classes may // not be able to validate properly. object[] attribs = type.GetCustomAttributes(typeof(SupportsEventValidationAttribute), false /* inherits */); bool supportsEventValidation = ((attribs != null) && (attribs.Length > 0)); _typesSupportsEventValidation[type] = supportsEventValidation; return supportsEventValidation; } } }///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlSchemaComplexContentRestriction.cs
- MetadataItemEmitter.cs
- ColorTranslator.cs
- FileUpload.cs
- LightweightCodeGenerator.cs
- SystemException.cs
- FormatException.cs
- TemplateField.cs
- DescriptionAttribute.cs
- AttachmentService.cs
- ParseHttpDate.cs
- Variable.cs
- MatrixCamera.cs
- XmlNodeReader.cs
- DesignerForm.cs
- ClientUtils.cs
- ZipIOExtraFieldZip64Element.cs
- DropDownList.cs
- AuthenticationServiceManager.cs
- XPathCompileException.cs
- WindowsListViewItemStartMenu.cs
- TemplateBaseAction.cs
- DesignerVerb.cs
- BinaryFormatter.cs
- HyperLink.cs
- PrintingPermission.cs
- KeyPullup.cs
- VisualTransition.cs
- AxisAngleRotation3D.cs
- PageTheme.cs
- StructuredCompositeActivityDesigner.cs
- BindingList.cs
- SplineQuaternionKeyFrame.cs
- XmlTypeAttribute.cs
- LOSFormatter.cs
- EncodingNLS.cs
- WrappedIUnknown.cs
- EncoderParameters.cs
- LeafCellTreeNode.cs
- SqlIdentifier.cs
- DataException.cs
- METAHEADER.cs
- CellConstantDomain.cs
- DBSqlParser.cs
- InheritablePropertyChangeInfo.cs
- CompilerWrapper.cs
- UnescapedXmlDiagnosticData.cs
- TeredoHelper.cs
- ServiceRouteHandler.cs
- ToolBarButtonDesigner.cs
- DesignTimeParseData.cs
- MetadataItem_Static.cs
- InvalidDataException.cs
- RelationshipEnd.cs
- XmlTextReader.cs
- XamlFilter.cs
- CommentEmitter.cs
- EntityViewGenerator.cs
- ReaderContextStackData.cs
- CacheMemory.cs
- TranslateTransform.cs
- InstancePersistence.cs
- storagemappingitemcollection.viewdictionary.cs
- HyperLinkDataBindingHandler.cs
- TextPattern.cs
- XmlSchemaSimpleTypeList.cs
- BevelBitmapEffect.cs
- StylusPointPropertyInfoDefaults.cs
- UserControlBuildProvider.cs
- HexParser.cs
- ContainerAction.cs
- ImageFormatConverter.cs
- ComboBox.cs
- RotationValidation.cs
- ListParaClient.cs
- ScrollProviderWrapper.cs
- SymbolDocumentGenerator.cs
- BindStream.cs
- WindowsContainer.cs
- InheritablePropertyChangeInfo.cs
- SoapSchemaMember.cs
- OpenTypeCommon.cs
- UserControl.cs
- OverflowException.cs
- DefaultShape.cs
- DrawListViewSubItemEventArgs.cs
- StatusBarDrawItemEvent.cs
- CaseCqlBlock.cs
- TrustLevel.cs
- ActiveDocumentEvent.cs
- LazyTextWriterCreator.cs
- InvalidCommandTreeException.cs
- PeerTransportListenAddressValidator.cs
- RuntimeIdentifierPropertyAttribute.cs
- XmlSchemaAttributeGroup.cs
- WithParamAction.cs
- RubberbandSelector.cs
- StorageEntityContainerMapping.cs
- ByteKeyFrameCollection.cs
- SignatureHelper.cs