Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DisposableCollectionWrapper.cs
- WindowsTokenRoleProvider.cs
- TextTreePropertyUndoUnit.cs
- JoinCqlBlock.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- FragmentNavigationEventArgs.cs
- FixedSOMTableRow.cs
- FormView.cs
- LinqDataView.cs
- DataGridColumnHeaderAutomationPeer.cs
- LocatorGroup.cs
- AsyncOperationManager.cs
- SpoolingTask.cs
- PrimitiveXmlSerializers.cs
- HorizontalAlignConverter.cs
- Matrix.cs
- TreeBuilderBamlTranslator.cs
- DrawingCollection.cs
- ChannelManager.cs
- SqlMultiplexer.cs
- ChannelEndpointElement.cs
- COM2EnumConverter.cs
- ComNativeDescriptor.cs
- EncodingNLS.cs
- DateTimeOffsetConverter.cs
- MediaCommands.cs
- SystemWebSectionGroup.cs
- XmlSerializationReader.cs
- DataPagerFieldCommandEventArgs.cs
- StsCommunicationException.cs
- CompilationRelaxations.cs
- PassportIdentity.cs
- TripleDES.cs
- RoleService.cs
- SafeRegistryHandle.cs
- AssertFilter.cs
- DataGridViewToolTip.cs
- InputLanguageCollection.cs
- ImageListDesigner.cs
- TileModeValidation.cs
- Point3DAnimation.cs
- MarkedHighlightComponent.cs
- AggregateException.cs
- DisplayMemberTemplateSelector.cs
- QilLoop.cs
- ParallelActivityDesigner.cs
- XmlCountingReader.cs
- DataGridViewCellStyleBuilderDialog.cs
- ServiceInstallComponent.cs
- DrawingImage.cs
- ProfileService.cs
- GenericUI.cs
- PartBasedPackageProperties.cs
- SqlDataSource.cs
- SiteOfOriginPart.cs
- ProjectionAnalyzer.cs
- FrameSecurityDescriptor.cs
- Attributes.cs
- MetafileHeaderWmf.cs
- TextWriterEngine.cs
- DesignerActionItem.cs
- WorkflowEventArgs.cs
- MessageQueueCriteria.cs
- MetadataProperty.cs
- ScrollBar.cs
- ControlParameter.cs
- GridViewRowPresenterBase.cs
- XmlNamespaceMappingCollection.cs
- Page.cs
- XPathException.cs
- ToolStripScrollButton.cs
- base64Transforms.cs
- AnnotationDocumentPaginator.cs
- XmlSchemaAll.cs
- altserialization.cs
- MediaContextNotificationWindow.cs
- Camera.cs
- CompensationExtension.cs
- Rfc4050KeyFormatter.cs
- FontClient.cs
- CommandEventArgs.cs
- Visual.cs
- EpmCustomContentDeSerializer.cs
- SqlDataSourceTableQuery.cs
- RegexMatchCollection.cs
- Int32Converter.cs
- FactoryId.cs
- GenericIdentity.cs
- GridEntryCollection.cs
- SimpleBitVector32.cs
- PublisherIdentityPermission.cs
- WebPartTransformer.cs
- ConfigUtil.cs
- Frame.cs
- IntSecurity.cs
- ConfigXmlSignificantWhitespace.cs
- SHA1Managed.cs
- DataControlHelper.cs
- XmlArrayItemAttribute.cs
- ZipIOLocalFileDataDescriptor.cs