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
- SequentialActivityDesigner.cs
- XmlIterators.cs
- TaskFileService.cs
- CellRelation.cs
- SpecialNameAttribute.cs
- QilReference.cs
- VisualStyleInformation.cs
- BasicViewGenerator.cs
- XPathParser.cs
- WebServiceFaultDesigner.cs
- SqlUserDefinedAggregateAttribute.cs
- BidOverLoads.cs
- Image.cs
- LogicalTreeHelper.cs
- CodeDomSerializationProvider.cs
- EmptyReadOnlyDictionaryInternal.cs
- XomlSerializationHelpers.cs
- SystemResources.cs
- XmlCharCheckingReader.cs
- FormClosingEvent.cs
- SqlCachedBuffer.cs
- DataGridColumn.cs
- OdbcUtils.cs
- IdentityHolder.cs
- IndexerNameAttribute.cs
- CodeGenerator.cs
- CompositeControl.cs
- StateWorkerRequest.cs
- DBConcurrencyException.cs
- EditorPartCollection.cs
- WebConfigurationFileMap.cs
- TripleDESCryptoServiceProvider.cs
- X509Utils.cs
- QueryTaskGroupState.cs
- TransactionInterop.cs
- ProxyElement.cs
- UnsafeNativeMethods.cs
- Vector.cs
- AccessDataSource.cs
- Helpers.cs
- SmtpCommands.cs
- base64Transforms.cs
- WSHttpTransportSecurityElement.cs
- FlatButtonAppearance.cs
- TextDecorationCollectionConverter.cs
- _BufferOffsetSize.cs
- MenuItem.cs
- MemberBinding.cs
- CacheVirtualItemsEvent.cs
- Currency.cs
- PeerMaintainer.cs
- SmtpMail.cs
- RunInstallerAttribute.cs
- filewebrequest.cs
- LambdaCompiler.Logical.cs
- CodeLabeledStatement.cs
- PerformanceCounterPermissionAttribute.cs
- IndicFontClient.cs
- OdbcFactory.cs
- ClientTarget.cs
- RectangleHotSpot.cs
- ActivationArguments.cs
- TextServicesManager.cs
- ApplicationFileCodeDomTreeGenerator.cs
- ContextBase.cs
- ProgressBar.cs
- BitStream.cs
- CalloutQueueItem.cs
- CompressEmulationStream.cs
- ThreadPool.cs
- MenuItem.cs
- ProtectedProviderSettings.cs
- FacetDescription.cs
- RangeEnumerable.cs
- EntityDataSourceChangingEventArgs.cs
- StringReader.cs
- SqlDataReaderSmi.cs
- ListBindableAttribute.cs
- DesignerVerbCollection.cs
- HTTPNotFoundHandler.cs
- LoginCancelEventArgs.cs
- ZipPackagePart.cs
- UniqueCodeIdentifierScope.cs
- Pointer.cs
- DescendantOverDescendantQuery.cs
- AppDomainFactory.cs
- DataBindingCollection.cs
- GeneralTransformGroup.cs
- UserNameSecurityTokenAuthenticator.cs
- UITypeEditors.cs
- ChtmlCalendarAdapter.cs
- TypeConverter.cs
- LambdaCompiler.Address.cs
- Comparer.cs
- DataGridViewSortCompareEventArgs.cs
- ValueUtilsSmi.cs
- Polyline.cs
- DataServiceProviderWrapper.cs
- Formatter.cs
- QuaternionAnimationBase.cs