Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // //----------------------------------------------------------------------------- /* */ 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BuildProvider.cs
- CompositionTarget.cs
- FormatConvertedBitmap.cs
- ChannelReliableSession.cs
- InternalResources.cs
- BindingExpressionUncommonField.cs
- BindableTemplateBuilder.cs
- TableLayoutPanel.cs
- ParallelEnumerable.cs
- OdbcConnectionFactory.cs
- MessageFormatterConverter.cs
- RawStylusSystemGestureInputReport.cs
- TypeConverterHelper.cs
- GlyphCache.cs
- KnownBoxes.cs
- shaperfactory.cs
- CapabilitiesState.cs
- ListControl.cs
- TablePatternIdentifiers.cs
- TreeNodeStyleCollection.cs
- ResourcePart.cs
- TokenizerHelper.cs
- GeneralTransform3DGroup.cs
- ToolStripItemDesigner.cs
- SecurityAttributeGenerationHelper.cs
- SchemaImporterExtensionsSection.cs
- RegionInfo.cs
- NativeWindow.cs
- SplineKeyFrames.cs
- LockedActivityGlyph.cs
- DataGridHelper.cs
- XamlStyleSerializer.cs
- InkCollectionBehavior.cs
- JsonWriterDelegator.cs
- WebConfigurationHostFileChange.cs
- RectAnimation.cs
- Image.cs
- EpmSourcePathSegment.cs
- FixedSchema.cs
- WebServicesInteroperability.cs
- ExpressionsCollectionConverter.cs
- ResourcesBuildProvider.cs
- DataGridViewRowPrePaintEventArgs.cs
- TransactionState.cs
- FactoryId.cs
- TripleDES.cs
- DbDeleteCommandTree.cs
- base64Transforms.cs
- TemplatedWizardStep.cs
- Console.cs
- UInt64Storage.cs
- SerializationException.cs
- ConversionContext.cs
- sqlcontext.cs
- PackageRelationshipSelector.cs
- MailWriter.cs
- EmptyStringExpandableObjectConverter.cs
- Empty.cs
- WebColorConverter.cs
- HttpApplicationFactory.cs
- _ListenerAsyncResult.cs
- WindowsTab.cs
- NegotiateStream.cs
- ProtocolsInstallComponent.cs
- BindValidationContext.cs
- HtmlHead.cs
- WindowInteractionStateTracker.cs
- ToolStripSplitStackLayout.cs
- RadioButtonFlatAdapter.cs
- XmlCodeExporter.cs
- ListDictionaryInternal.cs
- AssemblyName.cs
- ControlIdConverter.cs
- RemoteWebConfigurationHostStream.cs
- Frame.cs
- ReservationNotFoundException.cs
- SqlStatistics.cs
- XXXOnTypeBuilderInstantiation.cs
- HierarchicalDataBoundControl.cs
- ToolboxItemAttribute.cs
- ProcessManager.cs
- DataSourceCacheDurationConverter.cs
- BuildDependencySet.cs
- Rotation3DAnimationBase.cs
- VersionUtil.cs
- WithStatement.cs
- TextBoxAutoCompleteSourceConverter.cs
- ListChunk.cs
- DesignerAttribute.cs
- ObjectToIdCache.cs
- RectangleGeometry.cs
- XmlSerializationReader.cs
- SqlExpressionNullability.cs
- ChainOfDependencies.cs
- FormatterServices.cs
- PrintEvent.cs
- SqlWebEventProvider.cs
- MarshalDirectiveException.cs
- ResourceDefaultValueAttribute.cs
- CreateUserErrorEventArgs.cs