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
- EmptyArray.cs
- StreamInfo.cs
- SqlReorderer.cs
- FullTextLine.cs
- XsltContext.cs
- DecimalAverageAggregationOperator.cs
- OneOfConst.cs
- SspiWrapper.cs
- LinqDataSourceInsertEventArgs.cs
- ListSortDescriptionCollection.cs
- QuaternionConverter.cs
- SQLBinary.cs
- FixedTextBuilder.cs
- DiscoveryRequestHandler.cs
- cache.cs
- RectAnimationBase.cs
- WebPartChrome.cs
- HttpFileCollection.cs
- WebPartMovingEventArgs.cs
- OleStrCAMarshaler.cs
- GridItemPattern.cs
- PriorityQueue.cs
- OleDbConnectionFactory.cs
- RtfToXamlLexer.cs
- XpsResourceDictionary.cs
- HTTPNotFoundHandler.cs
- Viewport3DAutomationPeer.cs
- IsolatedStorageFile.cs
- SetterTriggerConditionValueConverter.cs
- CheckStoreFileValidityRequest.cs
- AddToCollection.cs
- ColorComboBox.cs
- XmlSchemaAny.cs
- WebPartCatalogCloseVerb.cs
- LinearKeyFrames.cs
- SuppressMessageAttribute.cs
- SystemTcpStatistics.cs
- CompiledELinqQueryState.cs
- RenamedEventArgs.cs
- Vector3D.cs
- HtmlTableCellCollection.cs
- Attributes.cs
- BuildProviderAppliesToAttribute.cs
- SiteMap.cs
- TextProviderWrapper.cs
- TreeNodeClickEventArgs.cs
- ClientConvert.cs
- NeutralResourcesLanguageAttribute.cs
- HtmlInputFile.cs
- SQLInt16.cs
- TemplatedAdorner.cs
- SimpleTypeResolver.cs
- HwndTarget.cs
- FormsAuthenticationCredentials.cs
- SecurityChannelListener.cs
- DateTimeUtil.cs
- MatrixUtil.cs
- EventSourceCreationData.cs
- login.cs
- ProtocolsConfiguration.cs
- IssuanceLicense.cs
- SoapConverter.cs
- GregorianCalendarHelper.cs
- ActionFrame.cs
- ADMembershipUser.cs
- XpsDocument.cs
- XmlSchemaComplexType.cs
- HashMembershipCondition.cs
- MenuAdapter.cs
- Padding.cs
- StrongNameIdentityPermission.cs
- HtmlEmptyTagControlBuilder.cs
- TextRange.cs
- AuthenticationManager.cs
- SiteMembershipCondition.cs
- SmiMetaData.cs
- PriorityBinding.cs
- HelpKeywordAttribute.cs
- AcceleratedTokenProvider.cs
- DataGridRowAutomationPeer.cs
- PeerInvitationResponse.cs
- WebPartHeaderCloseVerb.cs
- RtfNavigator.cs
- DateTimeFormat.cs
- SqlDataSourceCommandEventArgs.cs
- SecurityResources.cs
- WebUtil.cs
- MimeFormatter.cs
- HttpSessionStateWrapper.cs
- WindowsFormsSectionHandler.cs
- RectValueSerializer.cs
- CatalogPartCollection.cs
- GridEntryCollection.cs
- RectValueSerializer.cs
- PersonalizationProviderCollection.cs
- Timeline.cs
- SspiWrapper.cs
- StorageEndPropertyMapping.cs
- ContextMenu.cs
- CodeEntryPointMethod.cs