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
- WizardDesigner.cs
- HttpInputStream.cs
- TemplatedMailWebEventProvider.cs
- SecurityAccessDeniedException.cs
- LicenseManager.cs
- InheritanceAttribute.cs
- WhitespaceRuleLookup.cs
- RolePrincipal.cs
- CriticalExceptions.cs
- SqlBinder.cs
- SystemWebCachingSectionGroup.cs
- WindowsListView.cs
- SHA256.cs
- Executor.cs
- BezierSegment.cs
- EffectiveValueEntry.cs
- CompositionTarget.cs
- WinHttpWebProxyFinder.cs
- ZipIOCentralDirectoryBlock.cs
- SoundPlayer.cs
- BinaryObjectWriter.cs
- Margins.cs
- PassportAuthenticationModule.cs
- LookupNode.cs
- SymbolEqualComparer.cs
- VariableAction.cs
- WindowsFormsSectionHandler.cs
- TextAction.cs
- ViewSimplifier.cs
- DataViewSettingCollection.cs
- COM2ExtendedTypeConverter.cs
- RequestSecurityToken.cs
- Int32Storage.cs
- FileUtil.cs
- SiteMap.cs
- ListBindingHelper.cs
- MailBnfHelper.cs
- StatusBar.cs
- MonitorWrapper.cs
- SerializationObjectManager.cs
- SlipBehavior.cs
- CdpEqualityComparer.cs
- AutomationAttributeInfo.cs
- RtfToken.cs
- SqlDataSource.cs
- CapabilitiesPattern.cs
- CheckPair.cs
- ObjectDesignerDataSourceView.cs
- CodeTypeDeclaration.cs
- COM2PictureConverter.cs
- ClientScriptManagerWrapper.cs
- ReflectionHelper.cs
- AuthenticationSection.cs
- WithParamAction.cs
- AngleUtil.cs
- BinaryWriter.cs
- StyleTypedPropertyAttribute.cs
- WebPartConnectionsEventArgs.cs
- ArrayConverter.cs
- DiagnosticsConfigurationHandler.cs
- SByteStorage.cs
- BindingExpressionBase.cs
- Rectangle.cs
- BamlResourceContent.cs
- FieldNameLookup.cs
- NodeFunctions.cs
- SchemaCollectionPreprocessor.cs
- _Win32.cs
- Psha1DerivedKeyGeneratorHelper.cs
- KeyToListMap.cs
- CompatibleComparer.cs
- BuildProviderCollection.cs
- XAMLParseException.cs
- CodeCommentStatementCollection.cs
- ToolStripContentPanelRenderEventArgs.cs
- Error.cs
- JavaScriptObjectDeserializer.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- PasswordRecoveryDesigner.cs
- SyndicationDeserializer.cs
- ExecutionContext.cs
- hebrewshape.cs
- Vector3DCollectionConverter.cs
- basecomparevalidator.cs
- PageStatePersister.cs
- httpstaticobjectscollection.cs
- SqlInternalConnectionSmi.cs
- RoleManagerModule.cs
- CompensateDesigner.cs
- DeobfuscatingStream.cs
- XmlDictionaryWriter.cs
- XmlSchemaRedefine.cs
- HtmlFormWrapper.cs
- wgx_exports.cs
- XpsException.cs
- FactoryGenerator.cs
- Button.cs
- CookieParameter.cs
- FileLevelControlBuilderAttribute.cs
- WCFBuildProvider.cs