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
- ToolboxCategoryItems.cs
- NativeMethods.cs
- DragStartedEventArgs.cs
- WorkflowApplicationUnhandledExceptionEventArgs.cs
- RegexGroupCollection.cs
- Parameter.cs
- ValidationError.cs
- XamlPointCollectionSerializer.cs
- PropertyChangeTracker.cs
- HttpUnhandledOperationInvoker.cs
- ListViewUpdatedEventArgs.cs
- MetadataExchangeClient.cs
- ConditionalDesigner.cs
- HtmlInputRadioButton.cs
- Helpers.cs
- ParameterReplacerVisitor.cs
- OlePropertyStructs.cs
- ExecutedRoutedEventArgs.cs
- CollectionExtensions.cs
- EqualityComparer.cs
- VectorCollectionValueSerializer.cs
- XmlSchemaExternal.cs
- UriTemplateClientFormatter.cs
- DtrList.cs
- ClientFormsIdentity.cs
- SymLanguageVendor.cs
- designeractionlistschangedeventargs.cs
- _SSPISessionCache.cs
- InvalidDataException.cs
- JsonDeserializer.cs
- RequestDescription.cs
- ReversePositionQuery.cs
- DesignerCategoryAttribute.cs
- BitStream.cs
- TextWriterTraceListener.cs
- GradientBrush.cs
- ElementInit.cs
- DataGridViewImageCell.cs
- SQLInt16Storage.cs
- XslUrlEditor.cs
- ReversePositionQuery.cs
- SchemaName.cs
- NavigationCommands.cs
- TableCell.cs
- IsolatedStorageFileStream.cs
- CreateSequenceResponse.cs
- CharacterString.cs
- ToolStripOverflowButton.cs
- KeyInstance.cs
- Int16Animation.cs
- MaterializeFromAtom.cs
- HyperLink.cs
- EncodingTable.cs
- IIS7WorkerRequest.cs
- TextSchema.cs
- FileDialogCustomPlace.cs
- DataPointer.cs
- ToolBarPanel.cs
- SafeEventLogReadHandle.cs
- CompilationSection.cs
- RijndaelManaged.cs
- ErrorWebPart.cs
- UnaryNode.cs
- ZipIOLocalFileHeader.cs
- ContextMenuService.cs
- AxHostDesigner.cs
- IISMapPath.cs
- SchemaReference.cs
- RuntimeConfigurationRecord.cs
- Pkcs9Attribute.cs
- SynchronousReceiveBehavior.cs
- PriorityBinding.cs
- XmlKeywords.cs
- MailAddressParser.cs
- DataGridViewCellStyle.cs
- Soap.cs
- ConfigXmlWhitespace.cs
- Pair.cs
- TableLayoutSettingsTypeConverter.cs
- SplitContainer.cs
- CodeSnippetTypeMember.cs
- TextLineBreak.cs
- FixedPageProcessor.cs
- UnknownWrapper.cs
- ServiceDocumentFormatter.cs
- Knowncolors.cs
- XmlAutoDetectWriter.cs
- XmlBinaryReader.cs
- SubstitutionList.cs
- ConvertersCollection.cs
- CloudCollection.cs
- SmtpAuthenticationManager.cs
- ContentElement.cs
- DataGridColumnCollection.cs
- EventToken.cs
- GridViewAutomationPeer.cs
- OutputCacheProfileCollection.cs
- SignHashRequest.cs
- PopupControlService.cs
- BasicCommandTreeVisitor.cs