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
- SQLCharsStorage.cs
- SqlNamer.cs
- ArrayWithOffset.cs
- WebPartVerb.cs
- MSHTMLHost.cs
- InsufficientMemoryException.cs
- TagPrefixInfo.cs
- ServiceModelStringsVersion1.cs
- ContextMarshalException.cs
- EndEvent.cs
- DataRowCollection.cs
- KoreanCalendar.cs
- PrePrepareMethodAttribute.cs
- Merger.cs
- ListDictionaryInternal.cs
- RuntimeHelpers.cs
- ProtocolViolationException.cs
- FileSystemEventArgs.cs
- SafeNativeMethods.cs
- UrlUtility.cs
- IODescriptionAttribute.cs
- MouseEvent.cs
- XPathAxisIterator.cs
- DbgCompiler.cs
- PageStatePersister.cs
- SafeEventLogReadHandle.cs
- WSSecureConversationDec2005.cs
- X509UI.cs
- WebPartTracker.cs
- BitArray.cs
- XmlSchemaParticle.cs
- DeferredReference.cs
- SecurityProtocol.cs
- SqlBuilder.cs
- KeyValuePairs.cs
- GlyphingCache.cs
- ViewEventArgs.cs
- HttpCookiesSection.cs
- TextCollapsingProperties.cs
- RegexCompilationInfo.cs
- CanonicalFontFamilyReference.cs
- IncrementalReadDecoders.cs
- PartialArray.cs
- CharKeyFrameCollection.cs
- CodeAssignStatement.cs
- DecoderBestFitFallback.cs
- CharacterBuffer.cs
- DateRangeEvent.cs
- WorkflowServiceHost.cs
- ICspAsymmetricAlgorithm.cs
- typedescriptorpermission.cs
- BooleanFunctions.cs
- AppliedDeviceFiltersEditor.cs
- JsonWriterDelegator.cs
- Subtree.cs
- MappingModelBuildProvider.cs
- TaskExceptionHolder.cs
- InternalBase.cs
- DataGridClipboardHelper.cs
- assemblycache.cs
- IisTraceWebEventProvider.cs
- WebServiceTypeData.cs
- InkPresenter.cs
- BulletedList.cs
- PersonalizationAdministration.cs
- CodeGenerator.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- SQLMembershipProvider.cs
- EndpointDispatcherTable.cs
- sqlinternaltransaction.cs
- StorageSetMapping.cs
- MaterialGroup.cs
- AllMembershipCondition.cs
- AttachedPropertiesService.cs
- SafeThreadHandle.cs
- WorkerRequest.cs
- SafeNativeMethods.cs
- Propagator.cs
- ArrangedElement.cs
- SQLInt16.cs
- EventDescriptor.cs
- ErrorProvider.cs
- SecurityPolicySection.cs
- TrustLevelCollection.cs
- Message.cs
- DBSchemaRow.cs
- MSHTMLHost.cs
- StatusBarPanel.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- GenericUriParser.cs
- DataService.cs
- RulePatternOps.cs
- AuthenticatedStream.cs
- ComponentConverter.cs
- UserThread.cs
- DoubleSumAggregationOperator.cs
- SessionStateUtil.cs
- TimeSpanValidatorAttribute.cs
- InputProcessorProfilesLoader.cs
- SqlColumnizer.cs