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
- ScrollBarRenderer.cs
- LineSegment.cs
- DocumentReference.cs
- XmlArrayAttribute.cs
- WebPartEditVerb.cs
- XmlAtomicValue.cs
- ListViewUpdatedEventArgs.cs
- RuntimeResourceSet.cs
- WebDisplayNameAttribute.cs
- FieldTemplateUserControl.cs
- EmptyControlCollection.cs
- NavigationExpr.cs
- DataView.cs
- FontInfo.cs
- SerializationInfoEnumerator.cs
- Compiler.cs
- ListSourceHelper.cs
- CompatibleIComparer.cs
- MaterialCollection.cs
- TypeSystem.cs
- DocumentViewerAutomationPeer.cs
- DataServiceContext.cs
- Grammar.cs
- Boolean.cs
- FlowLayoutPanel.cs
- XmlEntity.cs
- InvalidPropValue.cs
- HtmlInputReset.cs
- DecoderReplacementFallback.cs
- AnimatedTypeHelpers.cs
- CollectionConverter.cs
- LongTypeConverter.cs
- Propagator.Evaluator.cs
- SchemaType.cs
- mongolianshape.cs
- ZipIOExtraField.cs
- RootNamespaceAttribute.cs
- TreeNodeEventArgs.cs
- MdiWindowListStrip.cs
- AlternateViewCollection.cs
- PathData.cs
- Pen.cs
- WS2007HttpBindingCollectionElement.cs
- StandardOleMarshalObject.cs
- KeyedCollection.cs
- BitmapEffectDrawingContent.cs
- PropertyInformationCollection.cs
- WindowsFormsSectionHandler.cs
- BridgeDataReader.cs
- ClientScriptItemCollection.cs
- SlotInfo.cs
- MethodCallConverter.cs
- NameValuePermission.cs
- UnauthorizedAccessException.cs
- RoutedPropertyChangedEventArgs.cs
- DataKeyCollection.cs
- WebPartMenuStyle.cs
- Size3D.cs
- _TransmitFileOverlappedAsyncResult.cs
- FrameworkRichTextComposition.cs
- AsyncStreamReader.cs
- BamlLocalizationDictionary.cs
- Single.cs
- PagePropertiesChangingEventArgs.cs
- Util.cs
- CursorConverter.cs
- AutomationElement.cs
- ConfigurationErrorsException.cs
- SoapInteropTypes.cs
- WebPart.cs
- DataStreamFromComStream.cs
- GridViewUpdatedEventArgs.cs
- DataGridLinkButton.cs
- EmptyStringExpandableObjectConverter.cs
- PreparingEnlistment.cs
- ZoneIdentityPermission.cs
- OrderedDictionaryStateHelper.cs
- URIFormatException.cs
- _HeaderInfoTable.cs
- SqlMetaData.cs
- ChangesetResponse.cs
- RoutedCommand.cs
- LowerCaseStringConverter.cs
- CompositeFontParser.cs
- Environment.cs
- HyperLinkDataBindingHandler.cs
- DictionaryEntry.cs
- DataSourceCacheDurationConverter.cs
- CodeSnippetStatement.cs
- Object.cs
- Ray3DHitTestResult.cs
- FormattedText.cs
- ImageAttributes.cs
- XPathPatternParser.cs
- UIElementIsland.cs
- Pkcs7Signer.cs
- ProfileElement.cs
- ReturnType.cs
- WebPartConnectionsConfigureVerb.cs
- FrameworkElementFactory.cs