Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebPartZoneBase.cs
- HttpRuntime.cs
- RoleManagerModule.cs
- ReadOnlyObservableCollection.cs
- TailCallAnalyzer.cs
- RadialGradientBrush.cs
- ActiveXMessageFormatter.cs
- DataGridCellsPresenter.cs
- EventTrigger.cs
- ManagedIStream.cs
- XmlSchemaException.cs
- CodeNamespace.cs
- EdmProviderManifest.cs
- WindowsUpDown.cs
- XPathItem.cs
- InternalCache.cs
- GPRECTF.cs
- Version.cs
- FrameworkContentElement.cs
- DetailsView.cs
- DataGridViewCellCancelEventArgs.cs
- StoreItemCollection.Loader.cs
- RemoteWebConfigurationHostServer.cs
- PieceDirectory.cs
- UnsafeNativeMethods.cs
- CustomCategoryAttribute.cs
- IMembershipProvider.cs
- ErrorWebPart.cs
- CodeTypeConstructor.cs
- FormViewModeEventArgs.cs
- DynamicField.cs
- Relationship.cs
- IssuanceTokenProviderBase.cs
- Token.cs
- Substitution.cs
- JsonClassDataContract.cs
- SuppressIldasmAttribute.cs
- RelationshipEndCollection.cs
- InfiniteIntConverter.cs
- ComAdminWrapper.cs
- ResXFileRef.cs
- EntityCollection.cs
- BitmapEffectInputConnector.cs
- JapaneseCalendar.cs
- ObjectIDGenerator.cs
- OrderedDictionary.cs
- TimelineClockCollection.cs
- QueryAccessibilityHelpEvent.cs
- CodeDirectiveCollection.cs
- CapabilitiesSection.cs
- AttachedPropertyInfo.cs
- PackageController.cs
- BulletedListEventArgs.cs
- CompilationLock.cs
- HtmlMeta.cs
- Int16Animation.cs
- ClrPerspective.cs
- InputLangChangeEvent.cs
- Operators.cs
- Hash.cs
- ImpersonateTokenRef.cs
- SocketException.cs
- MaskedTextBoxTextEditorDropDown.cs
- ButtonChrome.cs
- TcpHostedTransportConfiguration.cs
- WsdlBuildProvider.cs
- SinglePageViewer.cs
- CodeMethodReturnStatement.cs
- Italic.cs
- ActivityTypeDesigner.xaml.cs
- OdbcErrorCollection.cs
- HelpEvent.cs
- TypeToken.cs
- DataSourceProvider.cs
- DebugTrace.cs
- filewebrequest.cs
- ProfileParameter.cs
- SoapServerMethod.cs
- ISessionStateStore.cs
- DataGridViewCell.cs
- ObjectTag.cs
- TypeInitializationException.cs
- TimersDescriptionAttribute.cs
- ListenerSessionConnection.cs
- SqlConnectionPoolProviderInfo.cs
- OutputCacheSettings.cs
- CommandBindingCollection.cs
- ColumnMapTranslator.cs
- ParentQuery.cs
- Style.cs
- Int32Rect.cs
- ListViewGroupCollectionEditor.cs
- UnionExpr.cs
- StorageTypeMapping.cs
- HttpUnhandledOperationInvoker.cs
- __ComObject.cs
- InheritanceContextChangedEventManager.cs
- GeneratedView.cs
- XComponentModel.cs
- SelectionPattern.cs