Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / TargetControlTypeAttribute.cs / 1305376 / TargetControlTypeAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.Diagnostics.CodeAnalysis; using System.Web; [ AttributeUsage(AttributeTargets.Class, AllowMultiple = true) ] public sealed class TargetControlTypeAttribute : Attribute { private Type _targetControlType; public TargetControlTypeAttribute(Type targetControlType) { if (targetControlType == null) { throw new ArgumentNullException("targetControlType"); } _targetControlType = targetControlType; } public Type TargetControlType { get { return _targetControlType; } } // For attributes with AllowMultiple set to true, TypeDescriptor.GetAttributes() removes duplicate instances. // These are instances in which TypeId returns equal values. So we must override the TypeId property to // return a unique key. For this attribute, the unique key is just the target control type itself. // (DevDiv Bugs 111475) [SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] public override object TypeId { get { return _targetControlType; } } } } // 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
- TableItemPattern.cs
- ClusterRegistryConfigurationProvider.cs
- ISSmlParser.cs
- MsmqIntegrationProcessProtocolHandler.cs
- ExternalException.cs
- CallSite.cs
- XsdBuildProvider.cs
- BindStream.cs
- BaseValidator.cs
- GetWinFXPath.cs
- HatchBrush.cs
- Int32Storage.cs
- RIPEMD160Managed.cs
- CodeGotoStatement.cs
- DataGridViewRowPrePaintEventArgs.cs
- DataTableReader.cs
- SystemGatewayIPAddressInformation.cs
- HyperLinkField.cs
- AnnotationObservableCollection.cs
- ItemDragEvent.cs
- WebConfigManager.cs
- NullReferenceException.cs
- CellTreeNodeVisitors.cs
- DrawingContextDrawingContextWalker.cs
- TableLayoutPanelCodeDomSerializer.cs
- PointUtil.cs
- PickDesigner.xaml.cs
- DesignerTransaction.cs
- ActiveXContainer.cs
- LogStore.cs
- XhtmlTextWriter.cs
- DesignerTransaction.cs
- PcmConverter.cs
- TransformCryptoHandle.cs
- HorizontalAlignConverter.cs
- SequenceDesignerAccessibleObject.cs
- PageSettings.cs
- Query.cs
- FormatConvertedBitmap.cs
- Vector3DIndependentAnimationStorage.cs
- DurableEnlistmentState.cs
- StringReader.cs
- ExpressionBuilderContext.cs
- ControlCachePolicy.cs
- CommonXSendMessage.cs
- Fx.cs
- OracleRowUpdatingEventArgs.cs
- HScrollProperties.cs
- DataGridSortCommandEventArgs.cs
- XmlDigitalSignatureProcessor.cs
- SqlException.cs
- WindowsSidIdentity.cs
- CheckoutException.cs
- ConnectionManagementElementCollection.cs
- RepeatInfo.cs
- DBConcurrencyException.cs
- CustomAttribute.cs
- basecomparevalidator.cs
- VerificationException.cs
- TextElementCollectionHelper.cs
- XmlJsonReader.cs
- GroupBox.cs
- UriTemplateVariablePathSegment.cs
- CompilationUtil.cs
- UnsafeCollabNativeMethods.cs
- BindingSource.cs
- EventlogProvider.cs
- WindowsRichEdit.cs
- DriveNotFoundException.cs
- ScrollBar.cs
- TcpConnectionPool.cs
- SuppressMessageAttribute.cs
- Funcletizer.cs
- DataViewSettingCollection.cs
- EditorPartCollection.cs
- QuinticEase.cs
- ComponentRenameEvent.cs
- SecurityDocument.cs
- ByteFacetDescriptionElement.cs
- UserPersonalizationStateInfo.cs
- ClientTargetSection.cs
- CompiledQueryCacheKey.cs
- IndexedString.cs
- PointValueSerializer.cs
- MessageBox.cs
- FastEncoderWindow.cs
- EngineSiteSapi.cs
- ReadOnlyDictionary.cs
- XamlSerializerUtil.cs
- CodeArrayIndexerExpression.cs
- TimeoutValidationAttribute.cs
- ProxyDataContractResolver.cs
- Model3D.cs
- BinHexEncoding.cs
- BaseCAMarshaler.cs
- BitmapImage.cs
- Hashtable.cs
- SiteMap.cs
- CacheSection.cs
- EventLogRecord.cs