Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / SupportsEventValidationAttribute.cs / 1305376 / SupportsEventValidationAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web.UI { using System; using System.Collections; using System.ComponentModel; using System.Diagnostics; ////// [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.///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InvokeHandlers.cs
- DataMisalignedException.cs
- WorkflowQueueInfo.cs
- AsymmetricKeyExchangeDeformatter.cs
- DBPropSet.cs
- BindableTemplateBuilder.cs
- PriorityChain.cs
- BooleanStorage.cs
- DeviceFilterDictionary.cs
- TableItemPattern.cs
- XAMLParseException.cs
- GeometryModel3D.cs
- ProfilePropertyMetadata.cs
- DefaultBindingPropertyAttribute.cs
- documentsequencetextcontainer.cs
- TextEffectResolver.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- BackStopAuthenticationModule.cs
- ButtonFieldBase.cs
- SecurityManager.cs
- CellRelation.cs
- DesignTimeHTMLTextWriter.cs
- HttpWebResponse.cs
- LayoutDump.cs
- FormsAuthenticationUser.cs
- XamlSerializerUtil.cs
- BinaryReader.cs
- CommandEventArgs.cs
- XmlSchemaRedefine.cs
- LogArchiveSnapshot.cs
- CounterSample.cs
- sqlser.cs
- HtmlImage.cs
- TableParagraph.cs
- ChangeConflicts.cs
- SocketAddress.cs
- DataListItemCollection.cs
- CryptoHelper.cs
- DataGridViewTextBoxColumn.cs
- MessageQueueInstaller.cs
- DataControlField.cs
- DesignerActionUIService.cs
- LicenseContext.cs
- TextBoxDesigner.cs
- DrawingContextWalker.cs
- UrlMappingsModule.cs
- ItemMap.cs
- OuterGlowBitmapEffect.cs
- SQLDateTime.cs
- AsymmetricSignatureDeformatter.cs
- BooleanConverter.cs
- DynamicQueryableWrapper.cs
- SoapFault.cs
- cryptoapiTransform.cs
- ZipIOFileItemStream.cs
- WebPartDesigner.cs
- IISMapPath.cs
- WindowsIdentity.cs
- DecimalAverageAggregationOperator.cs
- UIElementIsland.cs
- PostBackTrigger.cs
- RootProfilePropertySettingsCollection.cs
- DbConvert.cs
- ColumnMapVisitor.cs
- Operator.cs
- MobileControl.cs
- EventRouteFactory.cs
- AppSettingsReader.cs
- StreamReader.cs
- IconConverter.cs
- BitmapCodecInfoInternal.cs
- ObjectAnimationBase.cs
- DataSourceControlBuilder.cs
- ScriptIgnoreAttribute.cs
- TextBox.cs
- Shape.cs
- ServiceHttpHandlerFactory.cs
- SpeakCompletedEventArgs.cs
- ScrollEvent.cs
- ServiceObjectContainer.cs
- ListSortDescription.cs
- ControlDesignerState.cs
- TypeSystem.cs
- XmlAnyElementAttribute.cs
- TextReader.cs
- XmlJsonWriter.cs
- DotExpr.cs
- RecognizerStateChangedEventArgs.cs
- ResourceDisplayNameAttribute.cs
- ServiceBusyException.cs
- ValidateNames.cs
- OdbcInfoMessageEvent.cs
- KnownTypesProvider.cs
- __FastResourceComparer.cs
- dataobject.cs
- PinProtectionHelper.cs
- ControlFilterExpression.cs
- KeyboardNavigation.cs
- ProxyAttribute.cs
- ChunkedMemoryStream.cs