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
- ClaimTypes.cs
- FontStretchConverter.cs
- HtmlDocument.cs
- UserNamePasswordValidator.cs
- Operator.cs
- Form.cs
- Configuration.cs
- Axis.cs
- CssStyleCollection.cs
- ActiveXHost.cs
- InitializerFacet.cs
- Polygon.cs
- GetPageCompletedEventArgs.cs
- ButtonChrome.cs
- DataObjectEventArgs.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- Activator.cs
- XPathBinder.cs
- Decoder.cs
- SHA512Managed.cs
- UriScheme.cs
- ReflectionHelper.cs
- PlaceHolder.cs
- handlecollector.cs
- ProtocolsConfiguration.cs
- DataControlFieldHeaderCell.cs
- ColumnCollection.cs
- PositiveTimeSpanValidatorAttribute.cs
- HyperLinkColumn.cs
- XPathPatternParser.cs
- JsonReader.cs
- AttachInfo.cs
- MethodCallTranslator.cs
- GetParentChain.cs
- SafeBitVector32.cs
- BuiltInPermissionSets.cs
- MetadataSource.cs
- Command.cs
- FamilyTypeface.cs
- XmlTextReader.cs
- ListViewTableRow.cs
- SQLInt16.cs
- SafeLibraryHandle.cs
- AuthenticationManager.cs
- IPipelineRuntime.cs
- DiscriminatorMap.cs
- Asn1IntegerConverter.cs
- AssertSection.cs
- AsyncResult.cs
- NodeFunctions.cs
- DataGridCellsPanel.cs
- SessionStateModule.cs
- HttpGetServerProtocol.cs
- PolicyLevel.cs
- AssertSection.cs
- SubMenuStyleCollection.cs
- FunctionCommandText.cs
- DataRecordInfo.cs
- CounterCreationData.cs
- ConfigurationValue.cs
- StylusPointPropertyInfoDefaults.cs
- ArglessEventHandlerProxy.cs
- PageThemeBuildProvider.cs
- SchemaRegistration.cs
- FloatUtil.cs
- GetPageCompletedEventArgs.cs
- AttributeEmitter.cs
- SqlGenericUtil.cs
- ViewGenerator.cs
- CommandValueSerializer.cs
- WrappedKeySecurityToken.cs
- MobileComponentEditorPage.cs
- EntityTypeEmitter.cs
- CheckBoxRenderer.cs
- LinkGrep.cs
- StackOverflowException.cs
- ObjectComplexPropertyMapping.cs
- PropertyItem.cs
- EntityViewGenerator.cs
- ConnectionConsumerAttribute.cs
- HtmlTableCell.cs
- DetailsViewModeEventArgs.cs
- QilBinary.cs
- DataGridViewCellFormattingEventArgs.cs
- XmlAutoDetectWriter.cs
- NumericUpDownAcceleration.cs
- MULTI_QI.cs
- FilterException.cs
- WhiteSpaceTrimStringConverter.cs
- DictionaryEditChange.cs
- ErrorRuntimeConfig.cs
- PartialCachingControl.cs
- DecoderFallback.cs
- DataGridTablesFactory.cs
- TranslateTransform.cs
- SafeRightsManagementHandle.cs
- EntityDataSourceValidationException.cs
- DSASignatureDeformatter.cs
- ServiceManagerHandle.cs
- StoreAnnotationsMap.cs