Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / FileLevelControlBuilderAttribute.cs / 1 / FileLevelControlBuilderAttribute.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 FileLevelControlBuilderAttribute : Attribute { ///Allows a TemplateControl (e.g. Page or UserControl) derived class to specify // the control builder used at the top level ofthe builder tree when parsing the file. /// for building that control within the ASP.NET parser. ////// /// public static readonly FileLevelControlBuilderAttribute Default = new FileLevelControlBuilderAttribute(null); private Type builderType = null; ///The default ///object is a /// builder. This field is read-only. /// public FileLevelControlBuilderAttribute(Type builderType) { this.builderType = builderType; } ////// public Type BuilderType { get { return builderType; } } ///Indicates XXX. This property is read-only. ////// /// public override int GetHashCode() { return builderType.GetHashCode(); } ///[To be supplied.] ////// /// public override bool Equals(object obj) { if (obj == this) { return true; } if ((obj != null) && (obj is FileLevelControlBuilderAttribute)) { return((FileLevelControlBuilderAttribute)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. //------------------------------------------------------------------------------ // // 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 FileLevelControlBuilderAttribute : Attribute { ///Allows a TemplateControl (e.g. Page or UserControl) derived class to specify // the control builder used at the top level ofthe builder tree when parsing the file. /// for building that control within the ASP.NET parser. ////// /// public static readonly FileLevelControlBuilderAttribute Default = new FileLevelControlBuilderAttribute(null); private Type builderType = null; ///The default ///object is a /// builder. This field is read-only. /// public FileLevelControlBuilderAttribute(Type builderType) { this.builderType = builderType; } ////// public Type BuilderType { get { return builderType; } } ///Indicates XXX. This property is read-only. ////// /// public override int GetHashCode() { return builderType.GetHashCode(); } ///[To be supplied.] ////// /// public override bool Equals(object obj) { if (obj == this) { return true; } if ((obj != null) && (obj is FileLevelControlBuilderAttribute)) { return((FileLevelControlBuilderAttribute)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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LocatorPart.cs
- EntityDataSourceSelectedEventArgs.cs
- JournalEntryListConverter.cs
- PlainXmlWriter.cs
- Buffer.cs
- XmlException.cs
- PathStreamGeometryContext.cs
- ActivityMarkupSerializationProvider.cs
- TextBox.cs
- AnimationTimeline.cs
- DispatcherExceptionEventArgs.cs
- StrokeCollection2.cs
- SafeHandles.cs
- LinqDataSourceHelper.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- SplitterPanel.cs
- PropertyTabAttribute.cs
- HierarchicalDataBoundControl.cs
- StyleSelector.cs
- BinaryConverter.cs
- OutputCacheModule.cs
- DashStyle.cs
- MetadataPropertyAttribute.cs
- CodeExpressionRuleDeclaration.cs
- ImageListUtils.cs
- ModuleConfigurationInfo.cs
- ApplicationException.cs
- DataFormats.cs
- DocumentViewerBaseAutomationPeer.cs
- FormDesigner.cs
- TitleStyle.cs
- Command.cs
- AffineTransform3D.cs
- SiteMapSection.cs
- XmlSchemaObject.cs
- ControlParameter.cs
- ProcessModelSection.cs
- OleDbSchemaGuid.cs
- httpapplicationstate.cs
- ZipPackagePart.cs
- MenuItemStyleCollection.cs
- FlowDocumentPaginator.cs
- IndexedWhereQueryOperator.cs
- PrivilegeNotHeldException.cs
- EasingQuaternionKeyFrame.cs
- XmlnsCache.cs
- VariableQuery.cs
- ProjectionNode.cs
- PropertyGeneratedEventArgs.cs
- PlainXmlWriter.cs
- _SingleItemRequestCache.cs
- DiscoveryServiceExtension.cs
- ProfileProvider.cs
- XmlCollation.cs
- OutArgument.cs
- Utility.cs
- CodeTypeDeclarationCollection.cs
- ControlBuilder.cs
- Stylesheet.cs
- DataControlButton.cs
- handlecollector.cs
- MetadataPropertyvalue.cs
- GC.cs
- ManagementEventArgs.cs
- TimeIntervalCollection.cs
- PreservationFileReader.cs
- CharEntityEncoderFallback.cs
- DbDataReader.cs
- NestedContainer.cs
- CodeChecksumPragma.cs
- ProcessHostServerConfig.cs
- DesignerProperties.cs
- SplineKeyFrames.cs
- DataViewListener.cs
- TimeoutException.cs
- MobileControlDesigner.cs
- ExternalCalls.cs
- ObjectDesignerDataSourceView.cs
- RSAPKCS1KeyExchangeFormatter.cs
- XmlBaseWriter.cs
- XPathNode.cs
- EntityDataSourceSelectingEventArgs.cs
- BaseDataList.cs
- NetworkCredential.cs
- DebugView.cs
- ObjectDesignerDataSourceView.cs
- DrawingServices.cs
- SplashScreen.cs
- IOException.cs
- ColumnClickEvent.cs
- HttpException.cs
- DataViewSettingCollection.cs
- ToolStripSeparatorRenderEventArgs.cs
- InputReportEventArgs.cs
- DoubleCollection.cs
- ExceptionValidationRule.cs
- AstTree.cs
- BooleanConverter.cs
- SoapWriter.cs
- RenderingEventArgs.cs