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
- InheritanceRules.cs
- WindowsFont.cs
- UrlMappingsSection.cs
- ExpressionBindingCollection.cs
- StringWriter.cs
- ListComponentEditorPage.cs
- SQLInt64.cs
- CheckBoxDesigner.cs
- RoleService.cs
- InfiniteTimeSpanConverter.cs
- ICollection.cs
- Regex.cs
- keycontainerpermission.cs
- ButtonPopupAdapter.cs
- StreamWithDictionary.cs
- IsolatedStoragePermission.cs
- BitmapEffectGroup.cs
- ColorDialog.cs
- BamlStream.cs
- TypeListConverter.cs
- FormattedTextSymbols.cs
- ScriptingRoleServiceSection.cs
- CollectionsUtil.cs
- MasterPageCodeDomTreeGenerator.cs
- Tuple.cs
- ViewStateException.cs
- TextBoxAutoCompleteSourceConverter.cs
- QilLiteral.cs
- WindowsHyperlink.cs
- OracleTimeSpan.cs
- baseaxisquery.cs
- QilDataSource.cs
- FunctionDescription.cs
- SmtpTransport.cs
- TextReturnReader.cs
- Base64Encoding.cs
- XmlnsCompatibleWithAttribute.cs
- GroupBoxAutomationPeer.cs
- SqlDependencyListener.cs
- WebRequestModuleElement.cs
- ModifiableIteratorCollection.cs
- ScriptingWebServicesSectionGroup.cs
- Focus.cs
- QuaternionAnimation.cs
- XNodeValidator.cs
- StyleSheet.cs
- CheckBoxRenderer.cs
- RadioButtonPopupAdapter.cs
- Int64Converter.cs
- Color.cs
- BevelBitmapEffect.cs
- FactoryGenerator.cs
- datacache.cs
- BulletChrome.cs
- RsaSecurityKey.cs
- AuthenticationException.cs
- WarningException.cs
- DataGridColumn.cs
- InvalidateEvent.cs
- ErrorFormatterPage.cs
- SoapCodeExporter.cs
- PlainXmlWriter.cs
- DataColumnChangeEvent.cs
- Model3DCollection.cs
- BCryptNative.cs
- HttpAsyncResult.cs
- MemberHolder.cs
- Types.cs
- WebUtility.cs
- JoinElimination.cs
- HttpHostedTransportConfiguration.cs
- AmbientLight.cs
- ToolboxBitmapAttribute.cs
- UserThread.cs
- DataStreamFromComStream.cs
- InArgument.cs
- NativeBuffer.cs
- XpsDocumentEvent.cs
- ErrorFormatterPage.cs
- TimeManager.cs
- XPathMessageFilter.cs
- CharacterBuffer.cs
- HttpProfileGroupBase.cs
- TypeSource.cs
- XmlUrlEditor.cs
- WebAdminConfigurationHelper.cs
- KnownBoxes.cs
- HwndKeyboardInputProvider.cs
- XMLSchema.cs
- GridViewUpdatedEventArgs.cs
- DrawToolTipEventArgs.cs
- WindowCollection.cs
- SecurityDocument.cs
- CustomValidator.cs
- DesignerCapabilities.cs
- EventDrivenDesigner.cs
- TableParaClient.cs
- PointUtil.cs
- EntityDataSourceView.cs
- ControlCachePolicy.cs