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
- BidOverLoads.cs
- EdmComplexPropertyAttribute.cs
- InvalidPropValue.cs
- TypeConverterHelper.cs
- WorkflowPersistenceService.cs
- BackgroundWorker.cs
- keycontainerpermission.cs
- SliderAutomationPeer.cs
- PreviewPrintController.cs
- XmlSerializerSection.cs
- TextRunCache.cs
- CapabilitiesAssignment.cs
- Pkcs9Attribute.cs
- FontStyleConverter.cs
- XmlNamespaceMappingCollection.cs
- ByteRangeDownloader.cs
- AssemblyNameProxy.cs
- UrlUtility.cs
- TextEditorLists.cs
- GenerateTemporaryTargetAssembly.cs
- Point3DConverter.cs
- LifetimeServices.cs
- LayoutTable.cs
- RemotingAttributes.cs
- MultiSelector.cs
- DataGridTableStyleMappingNameEditor.cs
- MemberInfoSerializationHolder.cs
- FormViewDeletedEventArgs.cs
- SoapBinding.cs
- ChoiceConverter.cs
- KeyGestureConverter.cs
- SafeCoTaskMem.cs
- CodeMethodInvokeExpression.cs
- Int16Animation.cs
- MailSettingsSection.cs
- AuditLog.cs
- Int32RectConverter.cs
- IISMapPath.cs
- WebPartRestoreVerb.cs
- NamespaceEmitter.cs
- TextClipboardData.cs
- HtmlHistory.cs
- BuildProvidersCompiler.cs
- HandlerMappingMemo.cs
- NativeMethods.cs
- UriTemplateClientFormatter.cs
- PathFigureCollection.cs
- Assert.cs
- NativeCppClassAttribute.cs
- Int64Animation.cs
- EntityDataSourceContextCreatedEventArgs.cs
- XamlBuildTaskServices.cs
- InternalDispatchObject.cs
- WindowsEditBoxRange.cs
- OutputScopeManager.cs
- UIPermission.cs
- ProjectionPathSegment.cs
- AuthenticationService.cs
- SymmetricAlgorithm.cs
- DateTimeStorage.cs
- Utility.cs
- StatusBarPanelClickEvent.cs
- BaseDataBoundControl.cs
- _NestedSingleAsyncResult.cs
- UnwrappedTypesXmlSerializerManager.cs
- MsmqElementBase.cs
- ScaleTransform3D.cs
- Quad.cs
- WindowsFormsLinkLabel.cs
- TableParaClient.cs
- ToolStripMenuItem.cs
- RoleGroupCollectionEditor.cs
- PathFigure.cs
- WeakReferenceEnumerator.cs
- Int64KeyFrameCollection.cs
- SchemaInfo.cs
- ContractHandle.cs
- SerializationSectionGroup.cs
- XmlSchemaAppInfo.cs
- PenContext.cs
- CaseStatement.cs
- LinkedResource.cs
- ColorMap.cs
- RadioButtonRenderer.cs
- X509CertificateChain.cs
- TableLayoutPanelCellPosition.cs
- AssociationType.cs
- TransactionFlowBindingElementImporter.cs
- RegexRunnerFactory.cs
- IdentityValidationException.cs
- DataGridViewSelectedCellCollection.cs
- BuilderInfo.cs
- X509Utils.cs
- DataObjectMethodAttribute.cs
- SqlCrossApplyToCrossJoin.cs
- PropertyEmitterBase.cs
- XmlSchemaSimpleContentExtension.cs
- InstanceKeyNotReadyException.cs
- WizardPanel.cs
- DeploymentExceptionMapper.cs