Code:
/ DotNET / DotNET / 8.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
- TimeSpanValidatorAttribute.cs
- EtwTrackingBehavior.cs
- AsyncOperation.cs
- XmlRootAttribute.cs
- XmlAttributeProperties.cs
- InvokeMemberBinder.cs
- SqlRewriteScalarSubqueries.cs
- RenderDataDrawingContext.cs
- DoubleMinMaxAggregationOperator.cs
- RightsManagementEncryptedStream.cs
- RowSpanVector.cs
- TextRangeEdit.cs
- DocumentOutline.cs
- XmlEncoding.cs
- XomlCompilerResults.cs
- UseLicense.cs
- KerberosTokenFactoryCredential.cs
- LoginName.cs
- WeakRefEnumerator.cs
- WebServiceData.cs
- CustomError.cs
- TrackBar.cs
- RegexFCD.cs
- SerializationInfo.cs
- RouteParameter.cs
- AppDomainProtocolHandler.cs
- WorkflowTimerService.cs
- XmlDictionary.cs
- DocumentSchemaValidator.cs
- WebPartManager.cs
- WindowsListViewSubItem.cs
- Vector3DCollectionConverter.cs
- Vars.cs
- PersistenceTypeAttribute.cs
- NamespaceCollection.cs
- HtmlButton.cs
- VideoDrawing.cs
- SecureEnvironment.cs
- SystemThemeKey.cs
- TransactionScope.cs
- SqlConnectionHelper.cs
- UrlMappingsModule.cs
- FloaterBaseParaClient.cs
- CompiledXpathExpr.cs
- BindingExpression.cs
- BamlMapTable.cs
- DesignObjectWrapper.cs
- SafeArrayTypeMismatchException.cs
- FtpCachePolicyElement.cs
- ControlAdapter.cs
- Accessible.cs
- CriticalHandle.cs
- StructuralType.cs
- DomainUpDown.cs
- Point3DCollection.cs
- SortedDictionary.cs
- EntityFunctions.cs
- SynchronizationLockException.cs
- SettingsPropertyWrongTypeException.cs
- AppliedDeviceFiltersEditor.cs
- TaiwanCalendar.cs
- SerializationEventsCache.cs
- activationcontext.cs
- WebPartsPersonalizationAuthorization.cs
- RuleProcessor.cs
- ViewManager.cs
- CacheDependency.cs
- SelectionGlyph.cs
- ExtensionQuery.cs
- Resources.Designer.cs
- StateDesigner.LayoutSelectionGlyph.cs
- FigureParaClient.cs
- _Events.cs
- SettingsContext.cs
- HostingPreferredMapPath.cs
- GiveFeedbackEvent.cs
- ICspAsymmetricAlgorithm.cs
- Automation.cs
- DictionarySectionHandler.cs
- File.cs
- DesignerDataTable.cs
- DrawingGroup.cs
- MappingModelBuildProvider.cs
- UpdatePanel.cs
- MetaModel.cs
- CodeComment.cs
- TableCellAutomationPeer.cs
- ProgressBarRenderer.cs
- UrlPath.cs
- StructuralType.cs
- BufferAllocator.cs
- xml.cs
- XappLauncher.cs
- NotificationContext.cs
- DataPagerFieldItem.cs
- RegisteredHiddenField.cs
- BitmapImage.cs
- RotateTransform.cs
- EnvironmentPermission.cs
- StaticExtension.cs