Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ // // 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
- TTSEngineProxy.cs
- TriggerAction.cs
- ContentOperations.cs
- ComplexType.cs
- UnicodeEncoding.cs
- TransactionTable.cs
- TextSelectionProcessor.cs
- AlphabetConverter.cs
- WorkflowIdleBehavior.cs
- Vertex.cs
- CanonicalizationDriver.cs
- RIPEMD160.cs
- ProvidePropertyAttribute.cs
- SoapElementAttribute.cs
- AnnotationMap.cs
- BaseProcessor.cs
- XmlILCommand.cs
- ValidatorCompatibilityHelper.cs
- DataAdapter.cs
- DataServiceRequest.cs
- CurrentChangedEventManager.cs
- MissingSatelliteAssemblyException.cs
- SmtpDigestAuthenticationModule.cs
- FloaterBaseParagraph.cs
- HtmlMeta.cs
- ConfigXmlWhitespace.cs
- DesignOnlyAttribute.cs
- entityreference_tresulttype.cs
- SecurityChannel.cs
- ChtmlTextWriter.cs
- RegexRunnerFactory.cs
- ReverseComparer.cs
- Utils.cs
- DataSourceViewSchemaConverter.cs
- XmlDataLoader.cs
- ReceiveActivityValidator.cs
- SystemIPGlobalProperties.cs
- EventToken.cs
- OracleCommandBuilder.cs
- FlowDocument.cs
- LinearQuaternionKeyFrame.cs
- MessageQuerySet.cs
- ClientUtils.cs
- RecognizerBase.cs
- ListControlBoundActionList.cs
- ObjectViewListener.cs
- RightsManagementInformation.cs
- Axis.cs
- QilChoice.cs
- PasswordDeriveBytes.cs
- SqlXmlStorage.cs
- ConfigDefinitionUpdates.cs
- ToolStripProgressBar.cs
- Pen.cs
- ComplexPropertyEntry.cs
- SessionState.cs
- ObjectNotFoundException.cs
- KeysConverter.cs
- FormattedText.cs
- EntityDesignerBuildProvider.cs
- MouseActionValueSerializer.cs
- Operators.cs
- MainMenu.cs
- ButtonFlatAdapter.cs
- ConnectionProviderAttribute.cs
- HttpHandlersSection.cs
- KoreanCalendar.cs
- CounterCreationDataConverter.cs
- ReliableSessionElement.cs
- ConsumerConnectionPoint.cs
- ListDictionaryInternal.cs
- FreezableOperations.cs
- NavigationEventArgs.cs
- AttributeProviderAttribute.cs
- BatchWriter.cs
- Timer.cs
- XmlWriter.cs
- SourceChangedEventArgs.cs
- SplitterPanel.cs
- Assert.cs
- BlurBitmapEffect.cs
- Sql8ExpressionRewriter.cs
- ReverseInheritProperty.cs
- WindowsRichEditRange.cs
- MsmqIntegrationProcessProtocolHandler.cs
- MsmqNonTransactedPoisonHandler.cs
- PathStreamGeometryContext.cs
- RedirectionProxy.cs
- UndirectedGraph.cs
- Matrix.cs
- Overlapped.cs
- ValidationSummary.cs
- AttributeCallbackBuilder.cs
- ScriptControlManager.cs
- CollectionBase.cs
- SqlError.cs
- TraceSection.cs
- LineBreakRecord.cs
- KeyboardEventArgs.cs
- DependencyObject.cs