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
- InstanceStore.cs
- PropertyPushdownHelper.cs
- QilInvokeLateBound.cs
- DecimalAverageAggregationOperator.cs
- XmlSchemaAnyAttribute.cs
- Int64.cs
- SafeRightsManagementPubHandle.cs
- AspProxy.cs
- PassportAuthentication.cs
- EnglishPluralizationService.cs
- SeekStoryboard.cs
- DataSourceControlBuilder.cs
- DesignerVerbCollection.cs
- MasterPageCodeDomTreeGenerator.cs
- SemanticResultValue.cs
- FloatMinMaxAggregationOperator.cs
- KeyInfo.cs
- CharEntityEncoderFallback.cs
- ServiceAppDomainAssociationProvider.cs
- ViewCellSlot.cs
- EditorPartChrome.cs
- CommandLineParser.cs
- StreamingContext.cs
- MbpInfo.cs
- NotImplementedException.cs
- DistinctQueryOperator.cs
- RC2.cs
- shaperfactoryquerycacheentry.cs
- DataGridCellInfo.cs
- XamlPoint3DCollectionSerializer.cs
- OdbcUtils.cs
- DataGridViewCellCancelEventArgs.cs
- ScriptControl.cs
- ZeroOpNode.cs
- XPathSelectionIterator.cs
- ToolStripLabel.cs
- PreservationFileReader.cs
- WindowAutomationPeer.cs
- ResolveCriteria11.cs
- BulletedList.cs
- Attribute.cs
- BuildProviderAppliesToAttribute.cs
- AssemblySettingAttributes.cs
- ComponentEditorPage.cs
- CommandID.cs
- Int16KeyFrameCollection.cs
- BrowserDefinitionCollection.cs
- GridItemPatternIdentifiers.cs
- Membership.cs
- UserControlAutomationPeer.cs
- DesignTable.cs
- DefaultValueTypeConverter.cs
- PTConverter.cs
- CodeCommentStatement.cs
- WinFormsComponentEditor.cs
- AutoGeneratedField.cs
- SignedPkcs7.cs
- Configuration.cs
- ScriptIgnoreAttribute.cs
- PropertyDescriptorGridEntry.cs
- OutputCacheProfileCollection.cs
- StrongNameSignatureInformation.cs
- Identity.cs
- XPathNodeList.cs
- TextTreeTextElementNode.cs
- Attributes.cs
- KeyTimeConverter.cs
- SystemWebSectionGroup.cs
- CustomAttributeBuilder.cs
- DBCommandBuilder.cs
- WindowProviderWrapper.cs
- DataSourceView.cs
- Double.cs
- CustomBindingElement.cs
- HyperLinkColumn.cs
- MetaForeignKeyColumn.cs
- PenLineJoinValidation.cs
- DataGridCaption.cs
- GZipStream.cs
- EntityContainerRelationshipSet.cs
- Random.cs
- EmbeddedMailObjectCollectionEditor.cs
- OleStrCAMarshaler.cs
- WebHttpBindingElement.cs
- WizardPanel.cs
- TreeView.cs
- EntityFrameworkVersions.cs
- CodeAttributeArgumentCollection.cs
- AssemblyAssociatedContentFileAttribute.cs
- XhtmlConformanceSection.cs
- TaskForm.cs
- CompensatableSequenceActivity.cs
- SpnegoTokenAuthenticator.cs
- ScrollEventArgs.cs
- FilterEventArgs.cs
- InvariantComparer.cs
- ExceptionRoutedEventArgs.cs
- IPEndPoint.cs
- OleDbDataReader.cs
- SkinBuilder.cs