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
- VirtualPath.cs
- ErrorFormatterPage.cs
- StringAttributeCollection.cs
- AutoResizedEvent.cs
- TextHidden.cs
- util.cs
- EntityModelSchemaGenerator.cs
- MethodAccessException.cs
- CollectionViewGroupInternal.cs
- IgnoreSectionHandler.cs
- ValidationRule.cs
- GridToolTip.cs
- DateTimePicker.cs
- BatchParser.cs
- DbException.cs
- HotSpotCollection.cs
- FreezableOperations.cs
- SamlAuthenticationStatement.cs
- Dictionary.cs
- MediaTimeline.cs
- NullReferenceException.cs
- ParserExtension.cs
- FormatException.cs
- WebPartDisplayModeEventArgs.cs
- StrongNameSignatureInformation.cs
- EdgeModeValidation.cs
- Int16Converter.cs
- QilBinary.cs
- ITextView.cs
- ExtensionQuery.cs
- UpdatePanel.cs
- DataGridViewColumnHeaderCell.cs
- ReflectionPermission.cs
- WriteableBitmap.cs
- SocketPermission.cs
- StickyNote.cs
- ObjectListCommand.cs
- DataGridItem.cs
- BinHexDecoder.cs
- PropertyToken.cs
- ModelItemDictionaryImpl.cs
- MessageCredentialType.cs
- ImageDesigner.cs
- EntityDataSourceSelectingEventArgs.cs
- DateTimeSerializationSection.cs
- NativeActivityFaultContext.cs
- PerformanceCounterCategory.cs
- SystemTcpStatistics.cs
- SoapSchemaExporter.cs
- XsdCachingReader.cs
- FacetDescription.cs
- AuthenticationModulesSection.cs
- SoapEnumAttribute.cs
- ContainerSelectorGlyph.cs
- SortQuery.cs
- MouseGestureValueSerializer.cs
- RawStylusInputCustomDataList.cs
- GreenMethods.cs
- HttpConfigurationSystem.cs
- DataGridViewCellConverter.cs
- HttpStreamFormatter.cs
- Tablet.cs
- FixedSOMImage.cs
- FlagsAttribute.cs
- Calendar.cs
- RtfFormatStack.cs
- SiteMapPath.cs
- PackagePart.cs
- XmlMemberMapping.cs
- QueryRewriter.cs
- Walker.cs
- ProgressBar.cs
- ParameterCollectionEditorForm.cs
- SessionParameter.cs
- WebPartDescriptionCollection.cs
- GeneralTransform3DCollection.cs
- UnmanagedMemoryStream.cs
- CompiledQuery.cs
- TransformPatternIdentifiers.cs
- DotExpr.cs
- DataReaderContainer.cs
- PrimitiveCodeDomSerializer.cs
- WindowsGraphicsWrapper.cs
- TextElementCollectionHelper.cs
- TimeoutException.cs
- FirstMatchCodeGroup.cs
- XmlMembersMapping.cs
- StackOverflowException.cs
- EditingScopeUndoUnit.cs
- DataGridCellsPanel.cs
- OracleDataReader.cs
- EventHandlersStore.cs
- MediaTimeline.cs
- NativeMethods.cs
- Viewport3DAutomationPeer.cs
- PartialList.cs
- RequestQueryProcessor.cs
- ColorConverter.cs
- OpenTypeCommon.cs
- SafeSecurityHandles.cs