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
- SrgsGrammarCompiler.cs
- DictionaryEntry.cs
- ConfigViewGenerator.cs
- SerializerWriterEventHandlers.cs
- New.cs
- XmlSchemaImporter.cs
- HandleExceptionArgs.cs
- InternalControlCollection.cs
- MappingItemCollection.cs
- SendReply.cs
- DataGridSortCommandEventArgs.cs
- GenericPrincipal.cs
- ExpressionBuilderContext.cs
- FolderNameEditor.cs
- DesignerAdapterUtil.cs
- DetailsViewModeEventArgs.cs
- DPTypeDescriptorContext.cs
- InternalResources.cs
- EntityDataSourceStatementEditor.cs
- EmptyEnumerator.cs
- CodeComment.cs
- cryptoapiTransform.cs
- Overlapped.cs
- CapabilitiesUse.cs
- ScrollChangedEventArgs.cs
- PolicyManager.cs
- AnimatedTypeHelpers.cs
- LabelEditEvent.cs
- RepeaterItemCollection.cs
- Visitors.cs
- XsdDateTime.cs
- XPathNodeIterator.cs
- UserControl.cs
- BlobPersonalizationState.cs
- ByteStreamMessageEncoderFactory.cs
- PaintValueEventArgs.cs
- FigureHelper.cs
- DocumentPage.cs
- TableCellCollection.cs
- SpotLight.cs
- WorkflowDesigner.cs
- SymmetricKey.cs
- Label.cs
- HMACSHA512.cs
- ConfigurationPropertyAttribute.cs
- Subordinate.cs
- HttpContext.cs
- QueryCursorEventArgs.cs
- Parameter.cs
- sqlstateclientmanager.cs
- DBDataPermission.cs
- SqlDuplicator.cs
- WinHttpWebProxyFinder.cs
- XmlSortKey.cs
- Win32Interop.cs
- NumberFormatInfo.cs
- DllNotFoundException.cs
- parserscommon.cs
- Menu.cs
- IPAddress.cs
- DataGridViewAutoSizeModeEventArgs.cs
- recordstatefactory.cs
- ObjectDataSourceDisposingEventArgs.cs
- RepeaterCommandEventArgs.cs
- UnaryExpression.cs
- SettingsSection.cs
- TextViewBase.cs
- DebuggerAttributes.cs
- NativeActivity.cs
- InstanceHandleReference.cs
- TimeStampChecker.cs
- FieldToken.cs
- InstanceDescriptor.cs
- TypeDelegator.cs
- AdapterDictionary.cs
- WsdlWriter.cs
- CodeAttributeDeclarationCollection.cs
- DirtyTextRange.cs
- PropagationProtocolsTracing.cs
- ObjectDataSourceDisposingEventArgs.cs
- SemanticResolver.cs
- UpdateException.cs
- SerialStream.cs
- TextRangeAdaptor.cs
- BinaryFormatterWriter.cs
- HtmlMeta.cs
- Pointer.cs
- SqlDependency.cs
- AspNetHostingPermission.cs
- TextProviderWrapper.cs
- ClientSettings.cs
- RelatedEnd.cs
- InternalConfigRoot.cs
- FormsAuthenticationCredentials.cs
- HttpCacheVaryByContentEncodings.cs
- BitmapEffectDrawing.cs
- RangeContentEnumerator.cs
- XhtmlTextWriter.cs
- Avt.cs
- HtmlControl.cs