Code:
/ DotNET / DotNET / 8.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
- TextElement.cs
- SqlDataSourceFilteringEventArgs.cs
- SecurityTokenAttachmentMode.cs
- Property.cs
- SoapFormatter.cs
- WebPartConnectionsConfigureVerb.cs
- coordinator.cs
- EditorPart.cs
- SymmetricCryptoHandle.cs
- DataTrigger.cs
- CodeChecksumPragma.cs
- ExecutedRoutedEventArgs.cs
- NavigatorInput.cs
- Security.cs
- CommandSet.cs
- HttpContextServiceHost.cs
- ToolboxItem.cs
- XmlCharCheckingReader.cs
- TableLayoutSettingsTypeConverter.cs
- CodeObject.cs
- MarkerProperties.cs
- shaperfactoryquerycachekey.cs
- XamlPointCollectionSerializer.cs
- GB18030Encoding.cs
- DataSourceHelper.cs
- PixelFormatConverter.cs
- XPathDescendantIterator.cs
- InvokeMemberBinder.cs
- SoapAttributes.cs
- TypeUtil.cs
- CompletionProxy.cs
- UpdateTracker.cs
- ListViewHitTestInfo.cs
- Int32EqualityComparer.cs
- PropertyEmitter.cs
- SQLInt32.cs
- SqlDataSourceFilteringEventArgs.cs
- StorageConditionPropertyMapping.cs
- TypefaceMetricsCache.cs
- X509CertificateEndpointIdentity.cs
- FormViewRow.cs
- TreeNodeStyleCollectionEditor.cs
- MdImport.cs
- BitmapDecoder.cs
- ConfigurationValidatorAttribute.cs
- ErrorHandler.cs
- SpinWait.cs
- ResourceExpression.cs
- UriScheme.cs
- ResolveNameEventArgs.cs
- ApplicationServiceHelper.cs
- EventLogConfiguration.cs
- TileBrush.cs
- SettingsSection.cs
- HttpStreamMessage.cs
- WorkflowMessageEventArgs.cs
- Gdiplus.cs
- BaseParser.cs
- DoubleCollectionConverter.cs
- ErrorActivity.cs
- QilPatternFactory.cs
- XamlToRtfParser.cs
- StreamUpgradeProvider.cs
- X509ChainElement.cs
- PropertyGridEditorPart.cs
- FigureParagraph.cs
- DefaultAuthorizationContext.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- RightsManagementEncryptionTransform.cs
- MethodExpression.cs
- AuthenticationService.cs
- ToolStripProgressBar.cs
- GridItemPattern.cs
- Overlapped.cs
- InternalConfigSettingsFactory.cs
- TagElement.cs
- AsymmetricAlgorithm.cs
- PageAsyncTaskManager.cs
- XmlSchemaAnnotated.cs
- CompilerInfo.cs
- CharacterString.cs
- AssemblyBuilder.cs
- _NegoStream.cs
- XsltLibrary.cs
- Model3DGroup.cs
- UrlPath.cs
- nulltextcontainer.cs
- ClientApiGenerator.cs
- DataServiceHostFactory.cs
- HuffModule.cs
- HttpFileCollectionWrapper.cs
- SiteMapDesignerDataSourceView.cs
- ImageKeyConverter.cs
- PropertySet.cs
- ExceptionHandlersDesigner.cs
- ResourcesBuildProvider.cs
- ArraySubsetEnumerator.cs
- VectorConverter.cs
- SubstitutionList.cs
- SourceSwitch.cs