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
- UIElement3D.cs
- SoapCodeExporter.cs
- OuterGlowBitmapEffect.cs
- ToolboxItemCollection.cs
- RtfControls.cs
- EditingScopeUndoUnit.cs
- TextMetrics.cs
- OpCellTreeNode.cs
- WindowsTab.cs
- FunctionImportMapping.cs
- ReadOnlyDataSourceView.cs
- CryptoStream.cs
- Subtree.cs
- ImageAttributes.cs
- ToolStripSettings.cs
- AssemblyBuilder.cs
- MsmqIntegrationChannelFactory.cs
- Label.cs
- PathParser.cs
- AttributeCollection.cs
- SignedXmlDebugLog.cs
- GPRECTF.cs
- WhereQueryOperator.cs
- RenderDataDrawingContext.cs
- IProvider.cs
- BehaviorService.cs
- SynchronizationScope.cs
- SafeUserTokenHandle.cs
- SystemUdpStatistics.cs
- FilteredAttributeCollection.cs
- XPathDocumentBuilder.cs
- StaticResourceExtension.cs
- TemplatedEditableDesignerRegion.cs
- Message.cs
- _AutoWebProxyScriptEngine.cs
- ComponentTray.cs
- DataGridPreparingCellForEditEventArgs.cs
- basecomparevalidator.cs
- ThemeDictionaryExtension.cs
- TreePrinter.cs
- PageThemeParser.cs
- CryptoStream.cs
- BitmapEffectRenderDataResource.cs
- FillBehavior.cs
- InternalConfigSettingsFactory.cs
- Module.cs
- LiteralControl.cs
- CapabilitiesUse.cs
- DateBoldEvent.cs
- WindowPatternIdentifiers.cs
- messageonlyhwndwrapper.cs
- UIntPtr.cs
- ProgressBar.cs
- SqlNode.cs
- HighlightVisual.cs
- ButtonFlatAdapter.cs
- GiveFeedbackEventArgs.cs
- validationstate.cs
- namescope.cs
- dtdvalidator.cs
- HttpHandlerAction.cs
- DefaultClaimSet.cs
- MbpInfo.cs
- ProgressBarRenderer.cs
- cache.cs
- HostExecutionContextManager.cs
- HandlerWithFactory.cs
- ArrayMergeHelper.cs
- GridToolTip.cs
- ConcurrencyMode.cs
- MenuItemBindingCollection.cs
- CodeDirectiveCollection.cs
- ResourceManagerWrapper.cs
- BooleanExpr.cs
- Merger.cs
- ListBoxItemWrapperAutomationPeer.cs
- SqlMethodCallConverter.cs
- ValueQuery.cs
- MenuAutomationPeer.cs
- altserialization.cs
- DataRowChangeEvent.cs
- DataGridToolTip.cs
- SequenceFullException.cs
- ConfigurationLockCollection.cs
- OleDbParameterCollection.cs
- BamlReader.cs
- SizeLimitedCache.cs
- TrackBarRenderer.cs
- NetNamedPipeSecurityElement.cs
- DoubleLink.cs
- XmlQueryType.cs
- HwndProxyElementProvider.cs
- FontSourceCollection.cs
- WeakReference.cs
- ConvertersCollection.cs
- LicenseProviderAttribute.cs
- ModuleBuilder.cs
- TypeLibConverter.cs
- DiscoveryInnerClientAdhoc11.cs
- ConfigurationStrings.cs