Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / IDReferencePropertyAttribute.cs / 1305376 / IDReferencePropertyAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; ////// 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)] 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowsRegion.cs
- EntityDesignerBuildProvider.cs
- COSERVERINFO.cs
- Rotation3DAnimation.cs
- ProcessModule.cs
- EntityCollection.cs
- XmlChildNodes.cs
- StyleXamlParser.cs
- ListBox.cs
- PolyQuadraticBezierSegment.cs
- ClassImporter.cs
- EventInfo.cs
- CredentialManagerDialog.cs
- FixedSOMPage.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- EnumConverter.cs
- MenuBase.cs
- DefaultParameterValueAttribute.cs
- MediaPlayer.cs
- DtdParser.cs
- Attributes.cs
- WinFormsSpinner.cs
- graph.cs
- ClientSettingsSection.cs
- ExtensionWindowResizeGrip.cs
- NativeMethods.cs
- XmlBinaryReader.cs
- FileUtil.cs
- CodeIterationStatement.cs
- SortQuery.cs
- TaskScheduler.cs
- XmlProcessingInstruction.cs
- BufferedGraphicsManager.cs
- XsdDataContractExporter.cs
- NonClientArea.cs
- UpdatePanelTriggerCollection.cs
- Bidi.cs
- CodeBinaryOperatorExpression.cs
- PropertyInfoSet.cs
- QilVisitor.cs
- DataShape.cs
- ItemsPresenter.cs
- PasswordDeriveBytes.cs
- HtmlSelect.cs
- XmlQueryStaticData.cs
- ManagementOptions.cs
- PolicyVersionConverter.cs
- _HeaderInfoTable.cs
- WorkflowExecutor.cs
- SignedPkcs7.cs
- invalidudtexception.cs
- ToolStripPanelRow.cs
- XmlConvert.cs
- Misc.cs
- NameSpaceExtractor.cs
- TableAdapterManagerGenerator.cs
- ManagementEventArgs.cs
- HwndHost.cs
- Boolean.cs
- XPathNodePointer.cs
- WorkflowRuntimeService.cs
- ClientSettingsStore.cs
- TextTreeDeleteContentUndoUnit.cs
- MinimizableAttributeTypeConverter.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- DatasetMethodGenerator.cs
- DesignerSerializationOptionsAttribute.cs
- ComplexObject.cs
- FieldNameLookup.cs
- Enlistment.cs
- HitTestDrawingContextWalker.cs
- OnOperation.cs
- DataSpaceManager.cs
- WebPartUtil.cs
- HelloOperationCD1AsyncResult.cs
- BamlResourceDeserializer.cs
- Mouse.cs
- ItemTypeToolStripMenuItem.cs
- MasterPageCodeDomTreeGenerator.cs
- SqlStatistics.cs
- RootProfilePropertySettingsCollection.cs
- TraceContextRecord.cs
- OperationFormatter.cs
- DEREncoding.cs
- DesignerAttribute.cs
- ArgumentOutOfRangeException.cs
- COM2ExtendedTypeConverter.cs
- ListItemCollection.cs
- XamlParser.cs
- BrowserInteropHelper.cs
- ThaiBuddhistCalendar.cs
- TextBoxBase.cs
- MailSettingsSection.cs
- DocumentViewerBase.cs
- SqlXmlStorage.cs
- CollectionViewSource.cs
- MD5.cs
- MergeLocalizationDirectives.cs
- ViewPort3D.cs
- WindowsMenu.cs