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
- NativeMethods.cs
- ExternalFile.cs
- InputElement.cs
- Composition.cs
- XmlEnumAttribute.cs
- TypeDescriptor.cs
- ObjectStateEntryDbDataRecord.cs
- mansign.cs
- _Semaphore.cs
- XXXOnTypeBuilderInstantiation.cs
- CodeLinePragma.cs
- SizeAnimationUsingKeyFrames.cs
- SoapSchemaExporter.cs
- StrongNameKeyPair.cs
- FlowDocumentPaginator.cs
- SynchronizationFilter.cs
- BamlLocalizableResource.cs
- HttpCookieCollection.cs
- DetailsViewCommandEventArgs.cs
- PrivilegedConfigurationManager.cs
- TextPointer.cs
- DBCSCodePageEncoding.cs
- AspNetHostingPermission.cs
- ScriptControl.cs
- DetectRunnableInstancesTask.cs
- BitmapImage.cs
- LinqDataSourceValidationException.cs
- ServicesUtilities.cs
- ArrangedElement.cs
- LockedBorderGlyph.cs
- Label.cs
- RecommendedAsConfigurableAttribute.cs
- SerializerWriterEventHandlers.cs
- EmptyControlCollection.cs
- BinarySerializer.cs
- ToolStripSystemRenderer.cs
- RawStylusInputCustomData.cs
- BaseInfoTable.cs
- PeerName.cs
- ReferenceConverter.cs
- SecurityHeaderLayout.cs
- ViewLoader.cs
- FontFamilyIdentifier.cs
- DoubleLinkListEnumerator.cs
- TextPattern.cs
- DocumentScope.cs
- GridViewUpdatedEventArgs.cs
- DialogWindow.cs
- AssemblySettingAttributes.cs
- GenericWebPart.cs
- NameTable.cs
- SendMailErrorEventArgs.cs
- ClusterSafeNativeMethods.cs
- documentation.cs
- SevenBitStream.cs
- HandlerBase.cs
- XmlEventCache.cs
- NonceToken.cs
- SystemTcpConnection.cs
- DesignerDataParameter.cs
- TextReader.cs
- MenuItemBinding.cs
- WSSecurityPolicy11.cs
- SafeReversePInvokeHandle.cs
- GenericEnumConverter.cs
- Soap.cs
- QilBinary.cs
- RecordsAffectedEventArgs.cs
- SelectionRangeConverter.cs
- IDictionary.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- WindowsUpDown.cs
- ClientSideProviderDescription.cs
- ObjectDataSourceMethodEditor.cs
- SiteMapNodeItem.cs
- Int16.cs
- CancellationHandlerDesigner.cs
- InvalidOperationException.cs
- DbBuffer.cs
- BindableAttribute.cs
- StickyNoteHelper.cs
- Mouse.cs
- SqlBuffer.cs
- DataRecord.cs
- UnsafeNativeMethodsTablet.cs
- IdentitySection.cs
- SecurityTokenProviderContainer.cs
- SpecialTypeDataContract.cs
- FontConverter.cs
- SecurityAlgorithmSuite.cs
- ContextDataSourceView.cs
- PreservationFileWriter.cs
- CommonProperties.cs
- IImplicitResourceProvider.cs
- MimeBasePart.cs
- DateTimeFormatInfoScanner.cs
- JpegBitmapDecoder.cs
- WmlImageAdapter.cs
- DBCommandBuilder.cs
- HtmlControlPersistable.cs