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
- UrlMappingCollection.cs
- PolicyVersion.cs
- XmlSignificantWhitespace.cs
- Tile.cs
- MetadataCache.cs
- MsmqProcessProtocolHandler.cs
- ILGen.cs
- TableCell.cs
- ReliableSession.cs
- COSERVERINFO.cs
- wmiprovider.cs
- MsmqIntegrationReceiveParameters.cs
- SerialErrors.cs
- CachedTypeface.cs
- ImageListDesigner.cs
- CurrentChangingEventManager.cs
- CodeDOMProvider.cs
- Focus.cs
- ProcessProtocolHandler.cs
- ReplacementText.cs
- BindingManagerDataErrorEventArgs.cs
- MethodCallConverter.cs
- TextEffect.cs
- CodeTryCatchFinallyStatement.cs
- Restrictions.cs
- DesignTimeVisibleAttribute.cs
- HttpStaticObjectsCollectionBase.cs
- InvalidProgramException.cs
- ExecutedRoutedEventArgs.cs
- RegularExpressionValidator.cs
- Facet.cs
- WorkflowRuntimeService.cs
- DataRowExtensions.cs
- FixedHyperLink.cs
- BoundsDrawingContextWalker.cs
- ExtensionDataObject.cs
- XslUrlEditor.cs
- PaintEvent.cs
- BuildProviderCollection.cs
- PeerDuplexChannelListener.cs
- DataTableCollection.cs
- SoapProtocolImporter.cs
- InputElement.cs
- StringBuilder.cs
- SortKey.cs
- SeverityFilter.cs
- ACE.cs
- ImplicitInputBrush.cs
- DataGridViewToolTip.cs
- ImmutableCollection.cs
- SimpleBitVector32.cs
- ToolStripPanelDesigner.cs
- CounterCreationData.cs
- MulticastDelegate.cs
- StaticTextPointer.cs
- CellIdBoolean.cs
- DefaultMemberAttribute.cs
- QuaternionRotation3D.cs
- TypeBuilderInstantiation.cs
- BufferedGraphicsManager.cs
- DBCommandBuilder.cs
- AndMessageFilterTable.cs
- InputLanguageManager.cs
- ServiceDurableInstanceContextProvider.cs
- StateMachine.cs
- ObjectViewListener.cs
- ParsedAttributeCollection.cs
- FtpWebRequest.cs
- FtpWebRequest.cs
- BamlLocalizationDictionary.cs
- HitTestWithPointDrawingContextWalker.cs
- FullTrustAssembly.cs
- CqlParserHelpers.cs
- TextBoxRenderer.cs
- SoapReflectionImporter.cs
- LineMetrics.cs
- StyleSheet.cs
- Walker.cs
- OracleString.cs
- NonBatchDirectoryCompiler.cs
- FontUnit.cs
- FlowLayoutPanelDesigner.cs
- OdbcFactory.cs
- TreeNode.cs
- PathFigureCollection.cs
- FileSystemWatcher.cs
- ObjectSet.cs
- DataContractSerializerSection.cs
- WebPartMenuStyle.cs
- ObjRef.cs
- ResourceReferenceExpressionConverter.cs
- AliasedSlot.cs
- DesignerActionMethodItem.cs
- VerificationAttribute.cs
- AutomationPropertyChangedEventArgs.cs
- SAPICategories.cs
- RectValueSerializer.cs
- HttpCookiesSection.cs
- BlobPersonalizationState.cs
- _AcceptOverlappedAsyncResult.cs