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
- AssociationEndMember.cs
- StoreItemCollection.Loader.cs
- SessionParameter.cs
- WebPartRestoreVerb.cs
- DataSvcMapFile.cs
- ToolStripDropDownItem.cs
- BindableTemplateBuilder.cs
- ApplicationManager.cs
- GlyphingCache.cs
- WasAdminWrapper.cs
- UnsafeNativeMethods.cs
- InvalidateEvent.cs
- XPathBuilder.cs
- ConnectionAcceptor.cs
- HandlerMappingMemo.cs
- Window.cs
- DataGridViewControlCollection.cs
- SendingRequestEventArgs.cs
- ClaimTypes.cs
- Transform.cs
- XsltLibrary.cs
- TraceContext.cs
- ListBoxItemAutomationPeer.cs
- NotSupportedException.cs
- DataGridCellAutomationPeer.cs
- PropertySegmentSerializationProvider.cs
- CompModSwitches.cs
- XhtmlBasicLinkAdapter.cs
- ResourceProperty.cs
- X509IssuerSerialKeyIdentifierClause.cs
- ChtmlLinkAdapter.cs
- PropertyDescriptorCollection.cs
- KeyConverter.cs
- BindingExpressionBase.cs
- StyleConverter.cs
- Select.cs
- RegexTree.cs
- HostedBindingBehavior.cs
- ServiceBusyException.cs
- WindowVisualStateTracker.cs
- LicenseContext.cs
- ADMembershipProvider.cs
- EpmSourcePathSegment.cs
- PassportPrincipal.cs
- DBProviderConfigurationHandler.cs
- IsolatedStorage.cs
- DropTarget.cs
- PropertyEmitter.cs
- TableAdapterManagerHelper.cs
- PlainXmlSerializer.cs
- LineVisual.cs
- ValidationRule.cs
- GridView.cs
- ToolStripOverflow.cs
- SQLMoney.cs
- CacheAxisQuery.cs
- TrackingStringDictionary.cs
- Mutex.cs
- DataRecordInfo.cs
- UriParserTemplates.cs
- OptimalBreakSession.cs
- TypeGeneratedEventArgs.cs
- ElementHostPropertyMap.cs
- RegexCompilationInfo.cs
- TemplateApplicationHelper.cs
- XmlFormatExtensionAttribute.cs
- ProvidersHelper.cs
- DependencyObjectType.cs
- LinearQuaternionKeyFrame.cs
- CompilerTypeWithParams.cs
- XmlCustomFormatter.cs
- TrueReadOnlyCollection.cs
- MetadataItem_Static.cs
- Vector3DAnimationBase.cs
- RoleGroup.cs
- ExecutedRoutedEventArgs.cs
- Underline.cs
- EpmTargetPathSegment.cs
- SmtpLoginAuthenticationModule.cs
- NamespaceDecl.cs
- RepeaterItem.cs
- ShaderEffect.cs
- OutputCache.cs
- ActivityExecutionContextCollection.cs
- ScrollViewer.cs
- ClipboardProcessor.cs
- XmlUTF8TextWriter.cs
- CommonRemoteMemoryBlock.cs
- CodeSnippetExpression.cs
- CommandHelpers.cs
- TraceHandlerErrorFormatter.cs
- _SecureChannel.cs
- QilXmlWriter.cs
- DesignColumnCollection.cs
- MultiDataTrigger.cs
- MenuAdapter.cs
- ValidationErrorInfo.cs
- XmlMapping.cs
- ApplicationServiceManager.cs
- SettingsPropertyNotFoundException.cs