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
- InheritablePropertyChangeInfo.cs
- CompilationUtil.cs
- FlowDocument.cs
- CodeDelegateCreateExpression.cs
- TemplateComponentConnector.cs
- MediaTimeline.cs
- AsyncOperation.cs
- MsmqHostedTransportConfiguration.cs
- EntityViewGenerationConstants.cs
- MemberExpression.cs
- OutOfProcStateClientManager.cs
- RelatedPropertyManager.cs
- BitmapImage.cs
- Expression.cs
- PreviewPageInfo.cs
- WebPermission.cs
- PhonemeEventArgs.cs
- DataGridViewCellValidatingEventArgs.cs
- TrackingStringDictionary.cs
- NodeLabelEditEvent.cs
- TypeBrowserDialog.cs
- XmlDataSourceDesigner.cs
- DataGridColumn.cs
- SizeChangedEventArgs.cs
- SelectorItemAutomationPeer.cs
- WizardPanel.cs
- ClickablePoint.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- _DigestClient.cs
- AuthenticationModuleElement.cs
- RepeatButtonAutomationPeer.cs
- PeerNearMe.cs
- VisualStateManager.cs
- EntityDataSourceDesigner.cs
- ToolStripDropDownButton.cs
- ButtonBase.cs
- Repeater.cs
- IISUnsafeMethods.cs
- BaseTemplateBuildProvider.cs
- DataTableNewRowEvent.cs
- SoapEnvelopeProcessingElement.cs
- ViewStateException.cs
- ControlPropertyNameConverter.cs
- InplaceBitmapMetadataWriter.cs
- WebPartMinimizeVerb.cs
- PathSegment.cs
- SafeTokenHandle.cs
- TypeConverterAttribute.cs
- CodeExpressionStatement.cs
- SnapshotChangeTrackingStrategy.cs
- DataRecordInternal.cs
- TagNameToTypeMapper.cs
- GridSplitterAutomationPeer.cs
- PageSettings.cs
- Font.cs
- SqlTriggerAttribute.cs
- SqlBuilder.cs
- MenuStrip.cs
- AncillaryOps.cs
- PlatformNotSupportedException.cs
- ScrollChangedEventArgs.cs
- Point3DCollection.cs
- RadioButtonList.cs
- BinaryFormatter.cs
- BitmapEffect.cs
- TypeToken.cs
- UIElement.cs
- DeferrableContent.cs
- GridViewColumnCollectionChangedEventArgs.cs
- StatusBarPanel.cs
- ManifestResourceInfo.cs
- MsmqVerifier.cs
- AuthorizationRule.cs
- RNGCryptoServiceProvider.cs
- XPathChildIterator.cs
- DesignerEventService.cs
- InputElement.cs
- SmtpReplyReaderFactory.cs
- QuadraticBezierSegment.cs
- DescendantBaseQuery.cs
- LazyTextWriterCreator.cs
- SchemaImporter.cs
- SqlProvider.cs
- XmlNode.cs
- RequestSecurityToken.cs
- MetadataPropertyAttribute.cs
- ObjectViewEntityCollectionData.cs
- TypeConverterHelper.cs
- InfiniteTimeSpanConverter.cs
- AsyncResult.cs
- ListenerConnectionModeReader.cs
- COAUTHIDENTITY.cs
- JavaScriptSerializer.cs
- Asn1IntegerConverter.cs
- ChameleonKey.cs
- ObjectPropertyMapping.cs
- InternalDispatchObject.cs
- FrameworkElement.cs
- RegisteredScript.cs
- CollectionBuilder.cs