Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / IDReferencePropertyAttribute.cs / 1305376 / IDReferencePropertyAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; ////// An IDReferencePropertyAttribute metadata attribute can be applied to string properties /// that contain ID references. /// This can be used to identify ID reference properties which allows design-time functionality /// to do interesting things with the property values. /// [AttributeUsage(AttributeTargets.Property)] public sealed class IDReferencePropertyAttribute : Attribute { private Type _referencedControlType; ////// public IDReferencePropertyAttribute() : this(typeof(Control)) { } ////// Used to mark a property as an ID reference. In addition, the type of controls /// can be specified. /// public IDReferencePropertyAttribute(Type referencedControlType) { _referencedControlType = referencedControlType; } ////// The types of controls allowed by the property. /// public Type ReferencedControlType { get { return _referencedControlType; } } ///public override int GetHashCode() { return ((ReferencedControlType != null) ? ReferencedControlType.GetHashCode() : 0); } /// public override bool Equals(object obj) { if (obj == this) { return true; } IDReferencePropertyAttribute other = obj as IDReferencePropertyAttribute; if (other != null) { return (ReferencedControlType == other.ReferencedControlType); } return false; } } } // 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
- AnnotationResource.cs
- ValueSerializerAttribute.cs
- DesignerRegionCollection.cs
- TypeLoadException.cs
- Byte.cs
- PerfCounterSection.cs
- RewritingSimplifier.cs
- DictionarySectionHandler.cs
- ListBoxItem.cs
- EventLogLink.cs
- URLMembershipCondition.cs
- StringExpressionSet.cs
- GetCryptoTransformRequest.cs
- ExpressionCopier.cs
- GridViewSortEventArgs.cs
- OleDbTransaction.cs
- PathFigure.cs
- TypeRefElement.cs
- CustomWebEventKey.cs
- DispatcherExceptionEventArgs.cs
- ChannelBinding.cs
- DataGridViewColumnEventArgs.cs
- FixUpCollection.cs
- MenuCommandService.cs
- ToolStripDropDown.cs
- MouseEvent.cs
- AssociatedControlConverter.cs
- FrameworkContextData.cs
- WSHttpTransportSecurityElement.cs
- ToolZone.cs
- RecordsAffectedEventArgs.cs
- DataGridViewColumnStateChangedEventArgs.cs
- ChannelManager.cs
- MaterialGroup.cs
- IsolatedStorageFilePermission.cs
- TripleDESCryptoServiceProvider.cs
- itemelement.cs
- Enum.cs
- NamedPipeAppDomainProtocolHandler.cs
- PolyBezierSegmentFigureLogic.cs
- ContentWrapperAttribute.cs
- ContentElementAutomationPeer.cs
- DESCryptoServiceProvider.cs
- Rijndael.cs
- AccessDataSourceWizardForm.cs
- SystemIPGlobalProperties.cs
- DefaultTypeArgumentAttribute.cs
- GroupDescription.cs
- XsltArgumentList.cs
- ResumeStoryboard.cs
- PreservationFileWriter.cs
- CategoryAttribute.cs
- SrgsElementFactory.cs
- WithParamAction.cs
- DataGridTextBoxColumn.cs
- InheritablePropertyChangeInfo.cs
- MarkedHighlightComponent.cs
- SecurityTokenAuthenticator.cs
- SqlParameterCollection.cs
- MediaContext.cs
- NamespaceMapping.cs
- datacache.cs
- PluralizationServiceUtil.cs
- remotingproxy.cs
- NaturalLanguageHyphenator.cs
- DomainUpDown.cs
- MessageRpc.cs
- Substitution.cs
- EncryptedHeader.cs
- ActivityStateRecord.cs
- LineSegment.cs
- CellNormalizer.cs
- ILGenerator.cs
- DynamicMetaObject.cs
- ExclusiveTcpListener.cs
- DataGridRowClipboardEventArgs.cs
- ScaleTransform3D.cs
- HexParser.cs
- RepeaterItem.cs
- TraceSource.cs
- TargetException.cs
- DesignerLinkAdapter.cs
- FixedDocumentPaginator.cs
- ConsumerConnectionPoint.cs
- DiscoveryClientProtocol.cs
- QueryResponse.cs
- ByteAnimation.cs
- ServiceManager.cs
- ObjectStateEntry.cs
- BindValidator.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- JobPageOrder.cs
- CodeNamespaceImportCollection.cs
- CollectionView.cs
- DynamicEndpointElement.cs
- GACMembershipCondition.cs
- ImageCodecInfo.cs
- ActiveXHost.cs
- AnnouncementSendsAsyncResult.cs
- GroupBoxAutomationPeer.cs