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
- BinaryUtilClasses.cs
- TypeResolver.cs
- SynchronizingStream.cs
- DataColumnMapping.cs
- PathFigureCollection.cs
- Menu.cs
- CursorConverter.cs
- Effect.cs
- DNS.cs
- ArgumentOutOfRangeException.cs
- RuleAttributes.cs
- CustomAssemblyResolver.cs
- SqlGatherConsumedAliases.cs
- EdmSchemaError.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ReturnValue.cs
- EntitySqlException.cs
- DocumentEventArgs.cs
- TaskSchedulerException.cs
- ImageConverter.cs
- RegistryPermission.cs
- HtmlInputCheckBox.cs
- HttpModuleCollection.cs
- SqlDataSourceEnumerator.cs
- WindowsNonControl.cs
- LoadedOrUnloadedOperation.cs
- OutputCacheSettingsSection.cs
- WorkItem.cs
- BasePattern.cs
- WindowsToolbarAsMenu.cs
- HttpValueCollection.cs
- TreeView.cs
- RemotingConfigParser.cs
- SqlMethods.cs
- ObjectListCommandsPage.cs
- Attributes.cs
- DataGridState.cs
- WindowsContainer.cs
- IgnoreSection.cs
- StringExpressionSet.cs
- SqlInternalConnection.cs
- ExpressionContext.cs
- Point3DAnimationBase.cs
- WebBrowser.cs
- FamilyTypefaceCollection.cs
- SQLSingleStorage.cs
- XmlDataSourceNodeDescriptor.cs
- DrawingBrush.cs
- XhtmlBasicControlAdapter.cs
- ThemeDirectoryCompiler.cs
- DataGridItemCollection.cs
- StdRegProviderWrapper.cs
- TextDecorationLocationValidation.cs
- HttpModuleAction.cs
- HtmlHead.cs
- RoleGroup.cs
- __ComObject.cs
- PathSegmentCollection.cs
- XamlTemplateSerializer.cs
- GlyphShapingProperties.cs
- CompiledIdentityConstraint.cs
- SecurityResources.cs
- HiddenFieldPageStatePersister.cs
- QuaternionIndependentAnimationStorage.cs
- While.cs
- ConditionCollection.cs
- BackStopAuthenticationModule.cs
- PageParser.cs
- KeyValueSerializer.cs
- TimelineGroup.cs
- GridViewEditEventArgs.cs
- FamilyMap.cs
- PersonalizationProviderCollection.cs
- FrameSecurityDescriptor.cs
- TailCallAnalyzer.cs
- XmlSchemaDatatype.cs
- DataBindEngine.cs
- RuntimeResourceSet.cs
- XmlCollation.cs
- Typography.cs
- InputElement.cs
- TreeNode.cs
- StateChangeEvent.cs
- ThemeConfigurationDialog.cs
- future.cs
- EntityDataSourceWrapperCollection.cs
- SystemEvents.cs
- CookielessHelper.cs
- ImageMap.cs
- RootBrowserWindow.cs
- TransformValueSerializer.cs
- HMACRIPEMD160.cs
- DecoderFallback.cs
- CompressionTracing.cs
- SmiRecordBuffer.cs
- CatalogPartCollection.cs
- RegexCompiler.cs
- WorkItem.cs
- DebugView.cs
- HttpValueCollection.cs