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
- SectionInput.cs
- ApplicationTrust.cs
- MapPathBasedVirtualPathProvider.cs
- GenericXmlSecurityToken.cs
- XmlChoiceIdentifierAttribute.cs
- ResXFileRef.cs
- MergeExecutor.cs
- SimpleHandlerFactory.cs
- DataGridViewSelectedColumnCollection.cs
- EvidenceBase.cs
- Activator.cs
- TraceListener.cs
- AxHost.cs
- OleDbSchemaGuid.cs
- IndentedWriter.cs
- NamespaceEmitter.cs
- PreProcessor.cs
- TimeSpanMinutesConverter.cs
- HMACRIPEMD160.cs
- SuppressMessageAttribute.cs
- OracleParameter.cs
- RuleSetDialog.Designer.cs
- AttributeTableBuilder.cs
- AsyncOperationManager.cs
- UriTemplate.cs
- ProxyWebPartConnectionCollection.cs
- SpeechSeg.cs
- CookieParameter.cs
- AnimatedTypeHelpers.cs
- ExceptionUtil.cs
- Rights.cs
- NotImplementedException.cs
- SafeTimerHandle.cs
- Location.cs
- ADMembershipProvider.cs
- NestedContainer.cs
- PartialTrustVisibleAssembly.cs
- UxThemeWrapper.cs
- DocumentGridContextMenu.cs
- SafeArrayRankMismatchException.cs
- SafeProcessHandle.cs
- StringDictionaryWithComparer.cs
- WebExceptionStatus.cs
- SafeFileMappingHandle.cs
- SystemIcmpV6Statistics.cs
- XmlLanguageConverter.cs
- HtmlFormWrapper.cs
- ServiceManager.cs
- DetailsViewDeletedEventArgs.cs
- Rule.cs
- MachineKey.cs
- MetadataException.cs
- UserControl.cs
- HitTestWithPointDrawingContextWalker.cs
- TableParaClient.cs
- BookmarkNameHelper.cs
- ScrollViewer.cs
- TaiwanCalendar.cs
- InlineCategoriesDocument.cs
- linebase.cs
- DiscoveryInnerClientAdhoc11.cs
- RegexCompiler.cs
- SimpleWebHandlerParser.cs
- MessageBox.cs
- QuerySubExprEliminator.cs
- ComponentResourceKey.cs
- DataGridViewAdvancedBorderStyle.cs
- EdmSchemaError.cs
- DynamicMethod.cs
- ColumnMapProcessor.cs
- DefinitionUpdate.cs
- ThreadStateException.cs
- OracleConnectionFactory.cs
- ClaimComparer.cs
- NameObjectCollectionBase.cs
- ParseChildrenAsPropertiesAttribute.cs
- CalendarTable.cs
- UseLicense.cs
- MaterialGroup.cs
- LinearKeyFrames.cs
- querybuilder.cs
- EventLogPermissionAttribute.cs
- Misc.cs
- ConfigurationValue.cs
- TypeValidationEventArgs.cs
- TdsParserSessionPool.cs
- AbandonedMutexException.cs
- TextRangeEdit.cs
- DataGridViewLinkColumn.cs
- UnsafeMethods.cs
- ServiceHostingEnvironment.cs
- unsafeIndexingFilterStream.cs
- printdlgexmarshaler.cs
- Model3DGroup.cs
- AssemblyNameProxy.cs
- RegexStringValidatorAttribute.cs
- MaterializeFromAtom.cs
- LayoutExceptionEventArgs.cs
- WSSecurityPolicy.cs
- StatusBarItemAutomationPeer.cs