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
- BindingOperations.cs
- invalidudtexception.cs
- MessageEncoder.cs
- XmlSchemaObjectTable.cs
- BuildProvidersCompiler.cs
- NodeInfo.cs
- CustomAttribute.cs
- XmlElementAttributes.cs
- QilPatternVisitor.cs
- FieldNameLookup.cs
- SynchronizedDisposablePool.cs
- LocalizabilityAttribute.cs
- CLRBindingWorker.cs
- Int32.cs
- ContentElementCollection.cs
- OpenCollectionAsyncResult.cs
- KeyEvent.cs
- WindowsRebar.cs
- HttpServerVarsCollection.cs
- DocumentXmlWriter.cs
- SelectingProviderEventArgs.cs
- ZeroOpNode.cs
- Image.cs
- DocumentOrderQuery.cs
- UIPropertyMetadata.cs
- XmlNamedNodeMap.cs
- XmlWriterTraceListener.cs
- XmlName.cs
- RecordsAffectedEventArgs.cs
- StandardOleMarshalObject.cs
- ProcessHostConfigUtils.cs
- TemplateDefinition.cs
- InstalledFontCollection.cs
- PropertyConverter.cs
- ReachPageContentSerializerAsync.cs
- InternalUserCancelledException.cs
- Native.cs
- DelegateTypeInfo.cs
- PrintDialogException.cs
- CollectionViewGroup.cs
- CommandDevice.cs
- ProfileEventArgs.cs
- RegexCompilationInfo.cs
- SafeCoTaskMem.cs
- ItemsPanelTemplate.cs
- OuterProxyWrapper.cs
- SQLDouble.cs
- PropertyInformationCollection.cs
- StateWorkerRequest.cs
- TypeTypeConverter.cs
- ChildDocumentBlock.cs
- EntityDataSourceContextCreatingEventArgs.cs
- Geometry3D.cs
- CodeTypeReference.cs
- Rights.cs
- MobileRedirect.cs
- PathGradientBrush.cs
- DescriptionCreator.cs
- thaishape.cs
- HttpChannelListener.cs
- XmlChildEnumerator.cs
- Constants.cs
- ServiceMetadataExtension.cs
- LocatorBase.cs
- GrammarBuilder.cs
- wmiprovider.cs
- AutomationPeer.cs
- TextRenderer.cs
- MSAAWinEventWrap.cs
- TextParagraphProperties.cs
- httpstaticobjectscollection.cs
- StyleXamlTreeBuilder.cs
- ReadOnlyPropertyMetadata.cs
- CalendarModeChangedEventArgs.cs
- HtmlForm.cs
- FormattedText.cs
- DrawItemEvent.cs
- SkinBuilder.cs
- XmlSchemaIdentityConstraint.cs
- XmlnsCompatibleWithAttribute.cs
- COM2PictureConverter.cs
- WebPartConnectionsConnectVerb.cs
- ScrollItemPattern.cs
- SignatureDescription.cs
- TraceUtility.cs
- XmlSerializableReader.cs
- CompiledQueryCacheKey.cs
- documentsequencetextcontainer.cs
- RoleManagerModule.cs
- BookmarkNameHelper.cs
- prompt.cs
- ImageMap.cs
- AsymmetricSignatureDeformatter.cs
- GuidelineCollection.cs
- SerializationException.cs
- ItemsPresenter.cs
- CorrelationActionMessageFilter.cs
- Normalization.cs
- MissingFieldException.cs
- ArithmeticException.cs