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
- Keyboard.cs
- DocumentXPathNavigator.cs
- StateFinalizationActivity.cs
- ProfileSettings.cs
- PageVisual.cs
- TextBoxAutoCompleteSourceConverter.cs
- ImagingCache.cs
- Selector.cs
- XmlIlTypeHelper.cs
- FormsAuthenticationCredentials.cs
- SecureEnvironment.cs
- SurrogateSelector.cs
- ThreadStaticAttribute.cs
- Splitter.cs
- OptimalBreakSession.cs
- ConfigurationErrorsException.cs
- DataGridRowsPresenter.cs
- CodeDOMUtility.cs
- FolderNameEditor.cs
- Light.cs
- NameObjectCollectionBase.cs
- Event.cs
- OletxEnlistment.cs
- BuiltInExpr.cs
- BulletedList.cs
- BitmapEffect.cs
- HwndKeyboardInputProvider.cs
- OperationDescription.cs
- XmlSchemaSimpleTypeRestriction.cs
- SafeFileMappingHandle.cs
- TableChangeProcessor.cs
- MouseButtonEventArgs.cs
- ETagAttribute.cs
- input.cs
- HttpDictionary.cs
- Pen.cs
- GZipDecoder.cs
- SafeBitVector32.cs
- HelpKeywordAttribute.cs
- SQLMoney.cs
- DataView.cs
- EtwTrace.cs
- BitSet.cs
- CharacterBuffer.cs
- SByte.cs
- IODescriptionAttribute.cs
- SettingsAttributeDictionary.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- ConnectorSelectionGlyph.cs
- ScrollProviderWrapper.cs
- BlockCollection.cs
- ColumnWidthChangedEvent.cs
- NativeMethods.cs
- MdiWindowListStrip.cs
- CalendarTable.cs
- PassportAuthenticationModule.cs
- EventLogPermissionEntryCollection.cs
- SineEase.cs
- XPathDocumentNavigator.cs
- ClientConfigurationSystem.cs
- WebPartAddingEventArgs.cs
- LabelLiteral.cs
- Lazy.cs
- categoryentry.cs
- EntityDataSourceViewSchema.cs
- NetworkInformationException.cs
- StatusBarItem.cs
- SystemIcmpV6Statistics.cs
- Win32.cs
- ObjectToIdCache.cs
- HyperLinkColumn.cs
- ModuleElement.cs
- DiscoveryInnerClientAdhoc11.cs
- ConnectionStringSettingsCollection.cs
- Version.cs
- TrackingProfile.cs
- DependencyObjectProvider.cs
- ToolStripPanel.cs
- CollectionViewGroupRoot.cs
- Scene3D.cs
- SqlTopReducer.cs
- ExitEventArgs.cs
- HtmlWindowCollection.cs
- Stacktrace.cs
- BrowserCapabilitiesFactory.cs
- NativeMethods.cs
- TextBoxBase.cs
- ParallelQuery.cs
- ProcessHost.cs
- OracleConnectionStringBuilder.cs
- RectangleHotSpot.cs
- XPathNavigator.cs
- SqlGenericUtil.cs
- WebControlAdapter.cs
- SqlAliasesReferenced.cs
- EndPoint.cs
- WebPartDescriptionCollection.cs
- StringBuilder.cs
- DbgCompiler.cs
- StringValidatorAttribute.cs