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
- LocatorPartList.cs
- XmlReader.cs
- AssemblyUtil.cs
- RuntimeConfigurationRecord.cs
- DES.cs
- ResourcePart.cs
- CharEnumerator.cs
- OracleCommandSet.cs
- StrokeFIndices.cs
- SessionIDManager.cs
- SafeProcessHandle.cs
- EntityType.cs
- SmtpTransport.cs
- OdbcConnectionFactory.cs
- XPathParser.cs
- DesignerLoader.cs
- Freezable.cs
- RuleInfoComparer.cs
- XamlFrame.cs
- RoleManagerEventArgs.cs
- ResourcesBuildProvider.cs
- TheQuery.cs
- LinqDataSourceUpdateEventArgs.cs
- NamespaceList.cs
- FontFamilyIdentifier.cs
- MergablePropertyAttribute.cs
- LogEntrySerialization.cs
- ConfigurationManagerInternal.cs
- FileDialog.cs
- ResourceReader.cs
- CharConverter.cs
- UdpAnnouncementEndpoint.cs
- ViewSimplifier.cs
- Utils.cs
- WebPartsPersonalization.cs
- PathFigureCollection.cs
- XmlSchemaComplexContent.cs
- TimeSpan.cs
- X509CertificateValidationMode.cs
- SQLByteStorage.cs
- XmlProcessingInstruction.cs
- DbProviderServices.cs
- LineSegment.cs
- FloaterParagraph.cs
- IxmlLineInfo.cs
- Config.cs
- FormViewDeleteEventArgs.cs
- BuildManager.cs
- GridViewCancelEditEventArgs.cs
- SamlConstants.cs
- FormClosingEvent.cs
- Panel.cs
- AlphabeticalEnumConverter.cs
- lengthconverter.cs
- PageThemeBuildProvider.cs
- CmsInterop.cs
- CutCopyPasteHelper.cs
- SecurityContextTokenCache.cs
- Scene3D.cs
- XmlNodeReader.cs
- BackStopAuthenticationModule.cs
- Delay.cs
- ListBoxDesigner.cs
- XmlSerializationGeneratedCode.cs
- PartialList.cs
- PolicyLevel.cs
- SafeEventLogWriteHandle.cs
- PropertyStore.cs
- FixedBufferAttribute.cs
- EditableRegion.cs
- SecurityKeyIdentifierClause.cs
- JoinGraph.cs
- Select.cs
- DataGridViewButtonColumn.cs
- CodeDOMUtility.cs
- BooleanConverter.cs
- KernelTypeValidation.cs
- MSAAEventDispatcher.cs
- JsonStringDataContract.cs
- ReflectTypeDescriptionProvider.cs
- ButtonBaseDesigner.cs
- MailWriter.cs
- DataTableClearEvent.cs
- OneOfElement.cs
- _SslSessionsCache.cs
- NotifyCollectionChangedEventArgs.cs
- ButtonBaseDesigner.cs
- TypeConverter.cs
- ManifestSignedXml.cs
- PartialList.cs
- QilVisitor.cs
- LicFileLicenseProvider.cs
- XmlDomTextWriter.cs
- FileReservationCollection.cs
- _Events.cs
- TimelineGroup.cs
- MarginCollapsingState.cs
- InfoCardAsymmetricCrypto.cs
- TreeNodeMouseHoverEvent.cs
- IdentityManager.cs