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
- MultiSelectRootGridEntry.cs
- OptimizedTemplateContent.cs
- SecondaryViewProvider.cs
- StrokeCollectionDefaultValueFactory.cs
- SafeReversePInvokeHandle.cs
- RadioButtonRenderer.cs
- CoordinationService.cs
- DynamicDiscoveryDocument.cs
- CodeMethodInvokeExpression.cs
- SqlServer2KCompatibilityCheck.cs
- CommandTreeTypeHelper.cs
- BitHelper.cs
- MediaSystem.cs
- ToolStripTextBox.cs
- InstallerTypeAttribute.cs
- HandlerBase.cs
- TerminateDesigner.cs
- WindowsGraphics.cs
- DataSetUtil.cs
- CardSpaceShim.cs
- SignedXml.cs
- ClickablePoint.cs
- InternalControlCollection.cs
- HitTestParameters.cs
- UriTemplateTrieLocation.cs
- SelectionProviderWrapper.cs
- IChannel.cs
- EntityClientCacheKey.cs
- EnumerableCollectionView.cs
- ClientRolePrincipal.cs
- ConditionalWeakTable.cs
- EntityContainerEntitySet.cs
- EventToken.cs
- RSAOAEPKeyExchangeDeformatter.cs
- securitycriticaldata.cs
- CssStyleCollection.cs
- SafeLibraryHandle.cs
- XmlLanguage.cs
- ChildDocumentBlock.cs
- StorageConditionPropertyMapping.cs
- DataServiceConfiguration.cs
- WorkflowView.cs
- TextAutomationPeer.cs
- VirtualPathProvider.cs
- X509ThumbprintKeyIdentifierClause.cs
- LowerCaseStringConverter.cs
- Substitution.cs
- DesignerActionVerbItem.cs
- Site.cs
- X509UI.cs
- RemotingServices.cs
- NotSupportedException.cs
- SaveFileDialogDesigner.cs
- ValidatorUtils.cs
- IOException.cs
- StrokeNodeData.cs
- MarkupObject.cs
- CalendarData.cs
- AppModelKnownContentFactory.cs
- ArraySet.cs
- _UriTypeConverter.cs
- xml.cs
- DocumentCollection.cs
- XslException.cs
- StorageEntitySetMapping.cs
- PermissionToken.cs
- precedingquery.cs
- TextWriterEngine.cs
- ping.cs
- CodeObject.cs
- AllMembershipCondition.cs
- ToolboxBitmapAttribute.cs
- InputQueue.cs
- PolicyChain.cs
- ByteConverter.cs
- Error.cs
- WindowsFont.cs
- PtsCache.cs
- RectAnimation.cs
- Scheduling.cs
- ToolZone.cs
- CanExecuteRoutedEventArgs.cs
- TextDecorationCollection.cs
- HandledMouseEvent.cs
- Collection.cs
- ColumnResult.cs
- WebSysDefaultValueAttribute.cs
- FrameworkTemplate.cs
- _FtpDataStream.cs
- PagerSettings.cs
- RuleInfoComparer.cs
- AutoResizedEvent.cs
- XmlSchemaCompilationSettings.cs
- PrimaryKeyTypeConverter.cs
- DrawingAttributesDefaultValueFactory.cs
- MimeObjectFactory.cs
- BitmapEffectCollection.cs
- WebPartVerbsEventArgs.cs
- WebPartExportVerb.cs
- FixedBufferAttribute.cs