Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / IDReferencePropertyAttribute.cs / 1 / IDReferencePropertyAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Security.Permissions; ////// 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)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LogArchiveSnapshot.cs
- TableItemPatternIdentifiers.cs
- TreeViewEvent.cs
- MethodBody.cs
- DataGridViewDataErrorEventArgs.cs
- ThemeableAttribute.cs
- HtmlTable.cs
- ConsumerConnectionPointCollection.cs
- hebrewshape.cs
- DoubleIndependentAnimationStorage.cs
- TypeConvertions.cs
- fixedPageContentExtractor.cs
- SmtpCommands.cs
- SmtpSection.cs
- Point3DAnimation.cs
- ListViewGroupConverter.cs
- InvalidPrinterException.cs
- QueryAccessibilityHelpEvent.cs
- DesignTimeValidationFeature.cs
- OrderedDictionaryStateHelper.cs
- UnsafePeerToPeerMethods.cs
- ShaderRenderModeValidation.cs
- NotifyInputEventArgs.cs
- CollectionDataContract.cs
- _AutoWebProxyScriptWrapper.cs
- XmlCharCheckingReader.cs
- ToolStripDropDownClosedEventArgs.cs
- LoopExpression.cs
- TreeViewBindingsEditor.cs
- QuotedPairReader.cs
- DataGridClipboardHelper.cs
- RelatedPropertyManager.cs
- PasswordBox.cs
- HttpPostedFile.cs
- EncodingTable.cs
- ListBindingConverter.cs
- PriorityQueue.cs
- TrackingProfileSerializer.cs
- PropertyChangingEventArgs.cs
- QueueProcessor.cs
- MonitorWrapper.cs
- BrushProxy.cs
- ToolboxItem.cs
- HashStream.cs
- Soap.cs
- LiteralLink.cs
- DictionaryBase.cs
- ServiceModelDictionary.cs
- LayoutTable.cs
- NullRuntimeConfig.cs
- AttachedPropertyBrowsableAttribute.cs
- PerformanceCounterManager.cs
- ThicknessAnimationBase.cs
- XmlSchemaComplexContentRestriction.cs
- EventsTab.cs
- GridViewDeleteEventArgs.cs
- BinaryConverter.cs
- SecurityDescriptor.cs
- ConnectionProviderAttribute.cs
- SoapServerMessage.cs
- TrackingProfileSerializer.cs
- CompoundFileReference.cs
- _emptywebproxy.cs
- XmlReflectionImporter.cs
- CopyNodeSetAction.cs
- IndentedWriter.cs
- TransformerInfoCollection.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- DescendentsWalker.cs
- DataGridDetailsPresenter.cs
- CheckBoxList.cs
- WindowProviderWrapper.cs
- MessageLoggingFilterTraceRecord.cs
- AsyncOperationManager.cs
- AppDomainFactory.cs
- LifetimeServices.cs
- StatusBarAutomationPeer.cs
- CultureInfoConverter.cs
- TextContainerChangedEventArgs.cs
- Unit.cs
- SizeChangedEventArgs.cs
- Pkcs7Recipient.cs
- Utils.cs
- TextTreeRootNode.cs
- LinearGradientBrush.cs
- Classification.cs
- GenericsNotImplementedException.cs
- ListView.cs
- NotCondition.cs
- ItemPager.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- PartialCachingControl.cs
- Symbol.cs
- EntityReference.cs
- Activity.cs
- SqlClientWrapperSmiStreamChars.cs
- KeyTime.cs
- PointConverter.cs
- TaiwanLunisolarCalendar.cs
- AuthenticatingEventArgs.cs