Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / ControlBuilderAttribute.cs / 1 / ControlBuilderAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web.UI { using System; using System.ComponentModel; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class ControlBuilderAttribute : Attribute { ///Allows a control to specify a custom ///object /// for building that control within the ASP.NET parser. /// /// public static readonly ControlBuilderAttribute Default = new ControlBuilderAttribute(null); private Type builderType = null; ///The default ///object is a /// builder. This field is read-only. /// public ControlBuilderAttribute(Type builderType) { this.builderType = builderType; } ////// public Type BuilderType { get { return builderType; } } ///Indicates XXX. This property is read-only. ////// /// public override int GetHashCode() { return ((BuilderType != null) ? BuilderType.GetHashCode() : 0); } ///[To be supplied.] ////// /// public override bool Equals(object obj) { if (obj == this) { return true; } if ((obj != null) && (obj is ControlBuilderAttribute)) { return((ControlBuilderAttribute)obj).BuilderType == builderType; } return false; } ////// ///public override bool IsDefaultAttribute() { return this.Equals(Default); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TagPrefixAttribute.cs
- WebPart.cs
- SqlRetyper.cs
- SplitterCancelEvent.cs
- IsolatedStoragePermission.cs
- SeekStoryboard.cs
- DeploymentExceptionMapper.cs
- Run.cs
- WindowProviderWrapper.cs
- WebPartManagerInternals.cs
- TimeSpanConverter.cs
- FormViewModeEventArgs.cs
- MD5HashHelper.cs
- ReplyChannelBinder.cs
- ListenDesigner.cs
- MouseWheelEventArgs.cs
- MembershipSection.cs
- MatrixUtil.cs
- errorpatternmatcher.cs
- SystemException.cs
- IconConverter.cs
- TypeSource.cs
- DoubleAnimationUsingKeyFrames.cs
- AppDomainAttributes.cs
- ValidationResult.cs
- CodeThrowExceptionStatement.cs
- MediaCommands.cs
- ArithmeticException.cs
- AuthenticationManager.cs
- EntityKeyElement.cs
- SamlSubjectStatement.cs
- QueryInterceptorAttribute.cs
- XmlIlTypeHelper.cs
- CombinedGeometry.cs
- ObjectDataSourceStatusEventArgs.cs
- FrameworkTextComposition.cs
- DataGridViewColumnEventArgs.cs
- InputProviderSite.cs
- WsatServiceCertificate.cs
- DataError.cs
- OleDbParameterCollection.cs
- RelationshipConstraintValidator.cs
- GACIdentityPermission.cs
- XmlSchemaComplexType.cs
- UserCancellationException.cs
- TableLayoutCellPaintEventArgs.cs
- BadImageFormatException.cs
- SynchronizedPool.cs
- ProgressBar.cs
- GeometryModel3D.cs
- SurrogateEncoder.cs
- CompressionTracing.cs
- RenameRuleObjectDialog.Designer.cs
- CaseInsensitiveHashCodeProvider.cs
- MenuEventArgs.cs
- TypeSystem.cs
- FontNamesConverter.cs
- WebHttpEndpointElement.cs
- RegistryKey.cs
- CriticalHandle.cs
- OperationContextScope.cs
- DescendentsWalker.cs
- MimeMultiPart.cs
- TileBrush.cs
- HierarchicalDataBoundControl.cs
- PrintDialog.cs
- Operator.cs
- ChangeNode.cs
- ContextMarshalException.cs
- GridLength.cs
- TraceUtility.cs
- Ref.cs
- MemoryPressure.cs
- CompiledXpathExpr.cs
- ChtmlPhoneCallAdapter.cs
- X509Utils.cs
- SafeBitVector32.cs
- DocumentViewerConstants.cs
- PackageRelationshipSelector.cs
- GroupItemAutomationPeer.cs
- SortQuery.cs
- PrintPreviewControl.cs
- DataGridTextColumn.cs
- AnnotationComponentManager.cs
- WebServiceData.cs
- HandledEventArgs.cs
- Token.cs
- CapiHashAlgorithm.cs
- XmlAttributeCache.cs
- BreakSafeBase.cs
- LogLogRecord.cs
- EventDriven.cs
- EventLogPermissionAttribute.cs
- ClosableStream.cs
- unitconverter.cs
- ToolTipAutomationPeer.cs
- PageBreakRecord.cs
- UIElement3D.cs
- CrossContextChannel.cs
- QilValidationVisitor.cs