Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PiiTraceSource.cs
- XmlDigitalSignatureProcessor.cs
- KeyGestureConverter.cs
- httpserverutility.cs
- WorkflowService.cs
- GlyphsSerializer.cs
- ADMembershipProvider.cs
- RegexCode.cs
- DbTransaction.cs
- PrivateFontCollection.cs
- ColumnMapCopier.cs
- DataSetFieldSchema.cs
- ParameterCollection.cs
- MessageBox.cs
- ComponentChangingEvent.cs
- TemplateEditingVerb.cs
- MainMenu.cs
- DataSpaceManager.cs
- RuntimeVariableList.cs
- TextBoxAutoCompleteSourceConverter.cs
- ItemCheckedEvent.cs
- BaseComponentEditor.cs
- ReadOnlyDictionary.cs
- RegexCharClass.cs
- FixedSOMTextRun.cs
- SeekableReadStream.cs
- Pair.cs
- LinqToSqlWrapper.cs
- MachinePropertyVariants.cs
- CodeIterationStatement.cs
- SchemaNotation.cs
- RectKeyFrameCollection.cs
- User.cs
- SiteMap.cs
- RegexNode.cs
- DataGridViewButtonCell.cs
- MultipleViewPattern.cs
- RuntimeEnvironment.cs
- DoubleAnimationUsingKeyFrames.cs
- CharEnumerator.cs
- FontStyle.cs
- SHA384Managed.cs
- DbException.cs
- ProfileManager.cs
- ViewKeyConstraint.cs
- TextDecorationCollection.cs
- PagesSection.cs
- Span.cs
- BooleanSwitch.cs
- WebPartRestoreVerb.cs
- WebPartMenu.cs
- SimpleMailWebEventProvider.cs
- DesignerActionUIService.cs
- WriteableBitmap.cs
- EventLogLink.cs
- ToggleProviderWrapper.cs
- CodePageUtils.cs
- XmlIlVisitor.cs
- ObjectIDGenerator.cs
- DockPatternIdentifiers.cs
- IpcServerChannel.cs
- TrustLevel.cs
- TrayIconDesigner.cs
- ReflectTypeDescriptionProvider.cs
- TypeUtil.cs
- DescendantQuery.cs
- ListViewItemEventArgs.cs
- GetRecipientRequest.cs
- TextTreeObjectNode.cs
- Drawing.cs
- ListParaClient.cs
- Timer.cs
- DataBindingHandlerAttribute.cs
- RemotingAttributes.cs
- ComplexType.cs
- SingleConverter.cs
- GridViewUpdatedEventArgs.cs
- ResXFileRef.cs
- CodeTypeParameterCollection.cs
- PropertyValue.cs
- __ComObject.cs
- PartBasedPackageProperties.cs
- QilExpression.cs
- WebDescriptionAttribute.cs
- NumberAction.cs
- PageHandlerFactory.cs
- ExitEventArgs.cs
- WasAdminWrapper.cs
- ActiveXHelper.cs
- odbcmetadatacolumnnames.cs
- DataGridViewSortCompareEventArgs.cs
- XamlPathDataSerializer.cs
- EmptyCollection.cs
- FormsAuthenticationConfiguration.cs
- SimpleTableProvider.cs
- WrapperEqualityComparer.cs
- BindingSource.cs
- PowerModeChangedEventArgs.cs
- ElementsClipboardData.cs
- Expander.cs