Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / FileLevelControlBuilderAttribute.cs / 1305376 / 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)] 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)] 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
- TextSyndicationContent.cs
- PositiveTimeSpanValidator.cs
- EditorPartChrome.cs
- Package.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- DataServiceOperationContext.cs
- CompilerTypeWithParams.cs
- safex509handles.cs
- AssemblyBuilder.cs
- NumericExpr.cs
- Overlapped.cs
- xdrvalidator.cs
- XmlElementAttributes.cs
- SqlDataSourceCommandEventArgs.cs
- ChineseLunisolarCalendar.cs
- NumberFunctions.cs
- ContainsSearchOperator.cs
- ResourceDisplayNameAttribute.cs
- QueueProcessor.cs
- PtsCache.cs
- TemplateControlBuildProvider.cs
- Property.cs
- StatusBarPanel.cs
- RoleBoolean.cs
- ObjectQueryState.cs
- XslAst.cs
- HttpModuleActionCollection.cs
- DataColumnChangeEvent.cs
- SchemaCollectionCompiler.cs
- Walker.cs
- TableProviderWrapper.cs
- ImmutableObjectAttribute.cs
- Label.cs
- backend.cs
- InternalConfigRoot.cs
- LoginCancelEventArgs.cs
- MetadataUtil.cs
- WorkflowRuntimeServicesBehavior.cs
- NativeRecognizer.cs
- COM2ComponentEditor.cs
- ButtonStandardAdapter.cs
- XsltInput.cs
- TabOrder.cs
- SecurityKeyType.cs
- EdmSchemaError.cs
- FacetChecker.cs
- MemberListBinding.cs
- RegionData.cs
- ClockController.cs
- SHA256Managed.cs
- PropertyNames.cs
- TagMapCollection.cs
- SqlUDTStorage.cs
- DataListAutoFormat.cs
- GraphicsContainer.cs
- XmlAutoDetectWriter.cs
- DetailsViewCommandEventArgs.cs
- MemoryPressure.cs
- InvalidPropValue.cs
- CompilerCollection.cs
- X509Certificate2.cs
- NopReturnReader.cs
- HTMLTextWriter.cs
- SqlComparer.cs
- SmtpFailedRecipientsException.cs
- ApplicationSecurityManager.cs
- HttpModuleAction.cs
- QuaternionRotation3D.cs
- DataControlImageButton.cs
- InvalidCastException.cs
- NodeCounter.cs
- Attributes.cs
- MouseCaptureWithinProperty.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- DayRenderEvent.cs
- SqlClientWrapperSmiStream.cs
- EncoderFallback.cs
- DropShadowBitmapEffect.cs
- LayoutEditorPart.cs
- RawTextInputReport.cs
- RuntimeEnvironment.cs
- ListBoxAutomationPeer.cs
- TextLine.cs
- SafeEventLogWriteHandle.cs
- HttpApplication.cs
- SafeReversePInvokeHandle.cs
- DependentTransaction.cs
- WebControl.cs
- PenLineJoinValidation.cs
- GeneralTransform2DTo3DTo2D.cs
- DataGridComboBoxColumn.cs
- WinOEToolBoxItem.cs
- PaperSize.cs
- QuaternionConverter.cs
- BookmarkEventArgs.cs
- TreeBuilderXamlTranslator.cs
- SqlComparer.cs
- Localizer.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- base64Transforms.cs