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
- HighlightVisual.cs
- URLString.cs
- FixedDSBuilder.cs
- InputBinding.cs
- SqlCrossApplyToCrossJoin.cs
- ContentValidator.cs
- CodeMemberField.cs
- DataContractSerializerSection.cs
- MsmqIntegrationBindingElement.cs
- StyleModeStack.cs
- ServiceHostingEnvironment.cs
- TypeNameHelper.cs
- RenderDataDrawingContext.cs
- VarRemapper.cs
- HashMembershipCondition.cs
- TabItemWrapperAutomationPeer.cs
- SymbolType.cs
- HatchBrush.cs
- XamlRtfConverter.cs
- FileLogRecordStream.cs
- InnerItemCollectionView.cs
- Proxy.cs
- NodeInfo.cs
- TextPointer.cs
- Menu.cs
- ContextConfiguration.cs
- XmlArrayAttribute.cs
- URIFormatException.cs
- ListViewItem.cs
- Matrix.cs
- ConvertBinder.cs
- ProgressBar.cs
- __FastResourceComparer.cs
- PkcsUtils.cs
- MachineKeyConverter.cs
- DirectoryRootQuery.cs
- InternalBase.cs
- DelegateBodyWriter.cs
- InlineObject.cs
- TrackBar.cs
- BadImageFormatException.cs
- ExpressionPrinter.cs
- APCustomTypeDescriptor.cs
- IndexedEnumerable.cs
- SubstitutionResponseElement.cs
- ConditionBrowserDialog.cs
- SequenceNumber.cs
- ObjectViewFactory.cs
- UIElement3DAutomationPeer.cs
- DecimalAnimation.cs
- CollectionViewSource.cs
- HttpWebRequest.cs
- EventLogQuery.cs
- PEFileReader.cs
- ReadOnlyActivityGlyph.cs
- WebPartRestoreVerb.cs
- ImageKeyConverter.cs
- BulletDecorator.cs
- StrongNameUtility.cs
- AsyncStreamReader.cs
- SequenceDesigner.cs
- SqlMethods.cs
- CriticalFinalizerObject.cs
- LowerCaseStringConverter.cs
- MissingSatelliteAssemblyException.cs
- SeparatorAutomationPeer.cs
- DocumentPaginator.cs
- BasePropertyDescriptor.cs
- ApplicationGesture.cs
- ResourceReferenceExpression.cs
- RoutingSection.cs
- XsltInput.cs
- ResourceSet.cs
- InputBinder.cs
- ImageMap.cs
- CodeIdentifiers.cs
- Lease.cs
- webeventbuffer.cs
- NonPrimarySelectionGlyph.cs
- UnaryOperationBinder.cs
- InkCollectionBehavior.cs
- VectorAnimationBase.cs
- OracleParameterBinding.cs
- HttpInputStream.cs
- PopupEventArgs.cs
- SubpageParaClient.cs
- HtmlMeta.cs
- EmptyQuery.cs
- Window.cs
- Expressions.cs
- HtmlMeta.cs
- MessageDecoder.cs
- XXXInfos.cs
- InstanceKeyView.cs
- SHA1Cng.cs
- MimeTypePropertyAttribute.cs
- InlinedAggregationOperator.cs
- StylusCaptureWithinProperty.cs
- ListBoxAutomationPeer.cs
- DataTableReaderListener.cs