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
- SoapSchemaExporter.cs
- ILGen.cs
- TimeSpanStorage.cs
- SqlReferenceCollection.cs
- DSACryptoServiceProvider.cs
- TextEndOfLine.cs
- RichTextBox.cs
- FormattedTextSymbols.cs
- SamlAdvice.cs
- SourceFileInfo.cs
- QueryOutputWriter.cs
- RSAOAEPKeyExchangeDeformatter.cs
- SafeUserTokenHandle.cs
- ChangeInterceptorAttribute.cs
- XmlBinaryReader.cs
- SqlConnectionString.cs
- WinInetCache.cs
- ImageButton.cs
- httpserverutility.cs
- ParentQuery.cs
- ContentType.cs
- CopyAction.cs
- RequestCachePolicyConverter.cs
- CngKeyCreationParameters.cs
- StorageEndPropertyMapping.cs
- SemanticValue.cs
- MenuItemStyle.cs
- TextBoxRenderer.cs
- Win32.cs
- shaperfactoryquerycacheentry.cs
- ChooseAction.cs
- Codec.cs
- ReversePositionQuery.cs
- StylusTip.cs
- XsdDuration.cs
- ListViewCancelEventArgs.cs
- TreeView.cs
- TreeViewHitTestInfo.cs
- ProvidersHelper.cs
- CalloutQueueItem.cs
- LinkConverter.cs
- invalidudtexception.cs
- CommandTreeTypeHelper.cs
- Object.cs
- TimersDescriptionAttribute.cs
- GridToolTip.cs
- filewebrequest.cs
- SqlRecordBuffer.cs
- NativeMsmqMessage.cs
- ParagraphResult.cs
- AnimationClock.cs
- SchemaElementLookUpTable.cs
- PersianCalendar.cs
- Visitors.cs
- WindowsListViewSubItem.cs
- WebPartHeaderCloseVerb.cs
- Sorting.cs
- mansign.cs
- MemberAssignment.cs
- BinarySerializer.cs
- ScriptResourceHandler.cs
- FontDialog.cs
- WorkflowInstanceProvider.cs
- EditorBrowsableAttribute.cs
- InfocardChannelParameter.cs
- DataViewManagerListItemTypeDescriptor.cs
- cookie.cs
- Themes.cs
- Transactions.cs
- RequestResponse.cs
- TextModifierScope.cs
- HttpModulesSection.cs
- LogWriteRestartAreaAsyncResult.cs
- ValidationRuleCollection.cs
- FilterQuery.cs
- InfoCardSymmetricAlgorithm.cs
- IndividualDeviceConfig.cs
- SByte.cs
- MeasurementDCInfo.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- WebServiceParameterData.cs
- WindowsToolbar.cs
- UriScheme.cs
- Psha1DerivedKeyGeneratorHelper.cs
- CheckPair.cs
- FileSystemInfo.cs
- ArgIterator.cs
- NativeMethodsOther.cs
- ConfigXmlAttribute.cs
- ImmutablePropertyDescriptorGridEntry.cs
- ForwardPositionQuery.cs
- ETagAttribute.cs
- CachedCompositeFamily.cs
- MethodAccessException.cs
- GcHandle.cs
- Color.cs
- hwndwrapper.cs
- FrameworkContentElement.cs
- ArgumentElement.cs
- ProxyWebPart.cs