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
- ExpressionEditor.cs
- OraclePermission.cs
- TransportReplyChannelAcceptor.cs
- ModifiableIteratorCollection.cs
- ObjectStateFormatter.cs
- Avt.cs
- PropertyGridView.cs
- EventPropertyMap.cs
- SystemColorTracker.cs
- DataGridView.cs
- SqlTypeConverter.cs
- DesignerForm.cs
- MemoryMappedFile.cs
- DrawingContext.cs
- PreviewKeyDownEventArgs.cs
- ContentPlaceHolder.cs
- CheckPair.cs
- MetadataException.cs
- SqlDuplicator.cs
- WindowShowOrOpenTracker.cs
- BamlLocalizabilityResolver.cs
- CalendarTable.cs
- XPathNodeInfoAtom.cs
- SmtpException.cs
- NodeFunctions.cs
- IsolatedStoragePermission.cs
- ToolStripGripRenderEventArgs.cs
- OutputCacheEntry.cs
- TableDesigner.cs
- MultilineStringEditor.cs
- CompositeDataBoundControl.cs
- DataGridViewRowPrePaintEventArgs.cs
- GenericTypeParameterBuilder.cs
- ClientRequest.cs
- Types.cs
- DataBindingList.cs
- odbcmetadatacolumnnames.cs
- EntityKeyElement.cs
- CustomAttribute.cs
- InputScopeAttribute.cs
- DataGridLength.cs
- WebControlAdapter.cs
- EntityDataSourceSelectingEventArgs.cs
- BaseInfoTable.cs
- AsymmetricKeyExchangeDeformatter.cs
- ClosableStream.cs
- OutputCacheProfileCollection.cs
- DataGridTextBoxColumn.cs
- SelectedGridItemChangedEvent.cs
- MessageParameterAttribute.cs
- CustomSignedXml.cs
- CompilationPass2TaskInternal.cs
- ListControl.cs
- TdsParserHelperClasses.cs
- SystemFonts.cs
- TypeUnloadedException.cs
- XhtmlBasicTextBoxAdapter.cs
- x509store.cs
- validationstate.cs
- Configuration.cs
- EventMappingSettingsCollection.cs
- RowUpdatedEventArgs.cs
- ResumeStoryboard.cs
- WebControlAdapter.cs
- TextPattern.cs
- COMException.cs
- InfoCardAsymmetricCrypto.cs
- TraceFilter.cs
- ExtendedPropertyDescriptor.cs
- OdbcRowUpdatingEvent.cs
- ErrorView.xaml.cs
- ClientScriptManagerWrapper.cs
- ValueCollectionParameterReader.cs
- AutoResetEvent.cs
- AccessText.cs
- EpmContentDeSerializerBase.cs
- DocumentReference.cs
- TransactionManager.cs
- PackageFilter.cs
- VectorKeyFrameCollection.cs
- ProvidersHelper.cs
- MediaElementAutomationPeer.cs
- AuthenticateEventArgs.cs
- EventSinkHelperWriter.cs
- XsltConvert.cs
- Point.cs
- SizeConverter.cs
- ServiceObjectContainer.cs
- QueryCreatedEventArgs.cs
- ExpressionNormalizer.cs
- DesignSurfaceServiceContainer.cs
- MimeXmlReflector.cs
- ValueConversionAttribute.cs
- PersonalizationProviderCollection.cs
- CharacterBufferReference.cs
- DesignerActionUI.cs
- DoubleConverter.cs
- OleDbParameterCollection.cs
- cache.cs
- TreeViewItem.cs