Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AnnotationResourceChangedEventArgs.cs
- GridViewRowCollection.cs
- ObjectDataSourceView.cs
- Button.cs
- Model3DGroup.cs
- BaseHashHelper.cs
- Misc.cs
- TextParaLineResult.cs
- PresentationSource.cs
- updatecommandorderer.cs
- unsafeIndexingFilterStream.cs
- GetFileNameResult.cs
- sqlstateclientmanager.cs
- TypeDescriptionProvider.cs
- infer.cs
- Mutex.cs
- OdbcCommand.cs
- XmlAttributeCollection.cs
- XmlAnyElementAttribute.cs
- OpacityConverter.cs
- ContentElement.cs
- ExternalException.cs
- MediaSystem.cs
- CurrentChangedEventManager.cs
- SHA1.cs
- PlaceHolder.cs
- Timer.cs
- CmsInterop.cs
- HttpDictionary.cs
- ListenerElementsCollection.cs
- Inline.cs
- AttachedPropertyDescriptor.cs
- TdsEnums.cs
- SessionStateSection.cs
- DocumentApplicationJournalEntry.cs
- ResourceReader.cs
- XmlEventCache.cs
- SecurityResources.cs
- DynamicMethod.cs
- connectionpool.cs
- CqlLexerHelpers.cs
- SmiGettersStream.cs
- SecurityElement.cs
- DataTrigger.cs
- XmlProcessingInstruction.cs
- CompilationSection.cs
- PropertyBuilder.cs
- AssemblyInfo.cs
- NumberFormatInfo.cs
- RegionData.cs
- StrokeNodeOperations.cs
- ComponentDesigner.cs
- Automation.cs
- Queue.cs
- OdbcConnectionHandle.cs
- ToolBarPanel.cs
- IntAverageAggregationOperator.cs
- PackWebResponse.cs
- XamlToRtfWriter.cs
- EmptyReadOnlyDictionaryInternal.cs
- Publisher.cs
- HttpResponseHeader.cs
- UIElementPropertyUndoUnit.cs
- TimeoutValidationAttribute.cs
- InfiniteIntConverter.cs
- InvalidDataException.cs
- FlowDocumentPageViewerAutomationPeer.cs
- DataGridViewSelectedColumnCollection.cs
- HttpWebRequestElement.cs
- ElementProxy.cs
- DBConcurrencyException.cs
- PeerCollaborationPermission.cs
- CustomAttributeSerializer.cs
- PageEventArgs.cs
- WindowsComboBox.cs
- BinaryReader.cs
- DocumentGridContextMenu.cs
- AutomationProperties.cs
- SqlBooleanizer.cs
- DataGridViewUtilities.cs
- AsyncStreamReader.cs
- DesignerEventService.cs
- WebPartVerb.cs
- StateMachineHelpers.cs
- ToolboxService.cs
- CheckedListBox.cs
- ComIntegrationManifestGenerator.cs
- QueryResponse.cs
- COM2FontConverter.cs
- DefaultParameterValueAttribute.cs
- SettingsPropertyWrongTypeException.cs
- _SslStream.cs
- DynamicPropertyHolder.cs
- xsdvalidator.cs
- HuffModule.cs
- SerialPort.cs
- AdapterUtil.cs
- Screen.cs
- Assert.cs
- UidManager.cs