Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / IDReferencePropertyAttribute.cs / 1 / IDReferencePropertyAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Security.Permissions; ////// 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)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Menu.cs
- TimeSpanValidator.cs
- QilValidationVisitor.cs
- LocalizedNameDescriptionPair.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- ProviderConnectionPoint.cs
- SafeWaitHandle.cs
- ApplicationServiceManager.cs
- StylusLogic.cs
- KnownColorTable.cs
- ToolZone.cs
- AppDomain.cs
- ZeroOpNode.cs
- UIPermission.cs
- SharedUtils.cs
- Animatable.cs
- TextDecoration.cs
- ObjectSecurity.cs
- FixedSOMTableRow.cs
- ErrorTableItemStyle.cs
- Vector3D.cs
- CustomTypeDescriptor.cs
- TdsParameterSetter.cs
- ObjectContextServiceProvider.cs
- SharedStream.cs
- XXXOnTypeBuilderInstantiation.cs
- CompiledQueryCacheEntry.cs
- ArrayItemReference.cs
- RegistrySecurity.cs
- DesignTimeVisibleAttribute.cs
- CachingHintValidation.cs
- ArithmeticException.cs
- PolyLineSegmentFigureLogic.cs
- ConfigXmlComment.cs
- AssemblyInfo.cs
- WindowsIdentity.cs
- XamlBrushSerializer.cs
- TransformerTypeCollection.cs
- TargetInvocationException.cs
- TextElementEditingBehaviorAttribute.cs
- DisposableCollectionWrapper.cs
- Model3DGroup.cs
- IItemContainerGenerator.cs
- TextEditorTables.cs
- AutomationAttributeInfo.cs
- DataReceivedEventArgs.cs
- BidirectionalDictionary.cs
- BaseInfoTable.cs
- Columns.cs
- TextRenderer.cs
- isolationinterop.cs
- DetailsViewUpdateEventArgs.cs
- DispatcherHookEventArgs.cs
- DetailsViewRowCollection.cs
- InvalidProgramException.cs
- SoapCodeExporter.cs
- xmlglyphRunInfo.cs
- UInt32.cs
- BindingContext.cs
- StringExpressionSet.cs
- DetailsView.cs
- SignatureConfirmations.cs
- VectorCollectionValueSerializer.cs
- ObjectFullSpanRewriter.cs
- AndCondition.cs
- XmlAttributeCollection.cs
- NavigationHelper.cs
- AuthorizationRuleCollection.cs
- HyperLink.cs
- WorkflowStateRollbackService.cs
- XmlDocumentSerializer.cs
- UpdateRecord.cs
- ScrollEventArgs.cs
- TickBar.cs
- SemanticBasicElement.cs
- XmlMemberMapping.cs
- ExpressionVisitor.cs
- HelpFileFileNameEditor.cs
- VectorAnimationUsingKeyFrames.cs
- CodeCatchClauseCollection.cs
- GeometryModel3D.cs
- MessageQueueCriteria.cs
- TextBounds.cs
- InputLangChangeRequestEvent.cs
- LoginUtil.cs
- SourceItem.cs
- ValidationService.cs
- PersonalizationStateQuery.cs
- InstanceValue.cs
- FormParameter.cs
- StorageMappingItemCollection.cs
- CodeMemberField.cs
- ColorAnimationUsingKeyFrames.cs
- ProcessHostConfigUtils.cs
- DictionaryManager.cs
- CroppedBitmap.cs
- ProviderSettings.cs
- BoolExpressionVisitors.cs
- EventsTab.cs
- DataSourceCacheDurationConverter.cs