Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / UI / FileLevelControlBuilderAttribute.cs / 1 / 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)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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
- FtpCachePolicyElement.cs
- UnionCqlBlock.cs
- Automation.cs
- RC2.cs
- Attributes.cs
- TypeExtension.cs
- Transform3DCollection.cs
- EpmSyndicationContentSerializer.cs
- Properties.cs
- CompiledIdentityConstraint.cs
- InputLanguage.cs
- EditingScope.cs
- EventEntry.cs
- ProcessExitedException.cs
- XPathDocument.cs
- NullRuntimeConfig.cs
- Fonts.cs
- RtfControls.cs
- InternalSendMessage.cs
- TreeWalker.cs
- XmlValidatingReaderImpl.cs
- ExceptionUtility.cs
- TableHeaderCell.cs
- MonthChangedEventArgs.cs
- DesigntimeLicenseContext.cs
- SHA512Managed.cs
- SqlNode.cs
- RowSpanVector.cs
- BindingCollection.cs
- DataControlButton.cs
- SystemIPGlobalProperties.cs
- TakeQueryOptionExpression.cs
- _UriTypeConverter.cs
- RegexTree.cs
- CompilerTypeWithParams.cs
- ElasticEase.cs
- Header.cs
- HtmlEmptyTagControlBuilder.cs
- ServiceModelActivationSectionGroup.cs
- XmlText.cs
- GeneralTransformCollection.cs
- SQLInt32.cs
- InvokePattern.cs
- TypedDataSourceCodeGenerator.cs
- ReachSerializerAsync.cs
- AndCondition.cs
- SpeechRecognitionEngine.cs
- ComponentDispatcherThread.cs
- TCPClient.cs
- CheckedPointers.cs
- TypeSemantics.cs
- cookieexception.cs
- ChangesetResponse.cs
- ValidationError.cs
- SemanticResolver.cs
- EventDescriptor.cs
- XMLSchema.cs
- EventLogPermission.cs
- FormatterConverter.cs
- PointCollection.cs
- CodeExporter.cs
- Command.cs
- PopupRootAutomationPeer.cs
- ForAllOperator.cs
- RtfControls.cs
- PageEventArgs.cs
- BatchWriter.cs
- ComboBoxAutomationPeer.cs
- InvalidFilterCriteriaException.cs
- AstNode.cs
- TreeNodeMouseHoverEvent.cs
- PolicyUnit.cs
- DataBindEngine.cs
- ConnectionPointCookie.cs
- Stylesheet.cs
- Psha1DerivedKeyGeneratorHelper.cs
- ResponseStream.cs
- InfoCardKeyedHashAlgorithm.cs
- ErrorWebPart.cs
- AnonymousIdentificationSection.cs
- XPathArrayIterator.cs
- PostBackOptions.cs
- SettingsProperty.cs
- DataKey.cs
- controlskin.cs
- PropertyToken.cs
- SourceItem.cs
- RoleManagerEventArgs.cs
- SiteIdentityPermission.cs
- ActiveXHelper.cs
- MouseButton.cs
- DomainUpDown.cs
- InvokeHandlers.cs
- BitmapEffectvisualstate.cs
- WebPartConnectVerb.cs
- WebColorConverter.cs
- CustomWebEventKey.cs
- RichTextBoxDesigner.cs
- ObjectListItem.cs
- XmlSchemaDatatype.cs