Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ // // 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlDataSourceView.cs
- errorpatternmatcher.cs
- NetworkInformationException.cs
- AttributeInfo.cs
- VectorCollectionValueSerializer.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- CapiSymmetricAlgorithm.cs
- WebGetAttribute.cs
- EmbeddedMailObject.cs
- BaseParaClient.cs
- TextRangeProviderWrapper.cs
- TypeViewSchema.cs
- SamlConstants.cs
- ListControlDataBindingHandler.cs
- ReachPageContentCollectionSerializer.cs
- ProxyManager.cs
- ItemsControl.cs
- RestHandlerFactory.cs
- WebSysDisplayNameAttribute.cs
- ResourceManager.cs
- BitmapEffect.cs
- CancellationHandlerDesigner.cs
- CookieProtection.cs
- BaseParaClient.cs
- PropertyToken.cs
- MetadataItemSerializer.cs
- HtmlToClrEventProxy.cs
- TTSEngineProxy.cs
- Identity.cs
- ExtendedProtectionPolicy.cs
- FromRequest.cs
- EncoderFallback.cs
- WebControlAdapter.cs
- Matrix.cs
- ClientRuntimeConfig.cs
- AppDomainCompilerProxy.cs
- ObfuscationAttribute.cs
- ProtocolImporter.cs
- DeclaredTypeValidatorAttribute.cs
- UdpChannelListener.cs
- ConstrainedGroup.cs
- WebPartAddingEventArgs.cs
- ObjectDataSourceSelectingEventArgs.cs
- GetWinFXPath.cs
- ClientSettings.cs
- SharedStatics.cs
- RSACryptoServiceProvider.cs
- FunctionMappingTranslator.cs
- ForwardPositionQuery.cs
- CancelEventArgs.cs
- TypeSemantics.cs
- X500Name.cs
- ProjectionAnalyzer.cs
- DoubleLink.cs
- SignedPkcs7.cs
- XslNumber.cs
- AsymmetricSignatureDeformatter.cs
- QilPatternVisitor.cs
- CompositeClientFormatter.cs
- RegexNode.cs
- ActivationArguments.cs
- StdValidatorsAndConverters.cs
- XsltQilFactory.cs
- ProjectionNode.cs
- FilteredSchemaElementLookUpTable.cs
- DbDataReader.cs
- _ConnectOverlappedAsyncResult.cs
- JapaneseLunisolarCalendar.cs
- OdbcHandle.cs
- TargetConverter.cs
- TextServicesContext.cs
- NameObjectCollectionBase.cs
- ExpressionEvaluator.cs
- TypedDataSourceCodeGenerator.cs
- EmptyStringExpandableObjectConverter.cs
- AxDesigner.cs
- DodSequenceMerge.cs
- TextBoxRenderer.cs
- SrgsRulesCollection.cs
- IDReferencePropertyAttribute.cs
- CommonObjectSecurity.cs
- WebPartDisplayModeCollection.cs
- Point.cs
- ChtmlTextWriter.cs
- MenuEventArgs.cs
- EditingCoordinator.cs
- printdlgexmarshaler.cs
- AuthenticationModulesSection.cs
- SqlDataSource.cs
- AsyncResult.cs
- MembershipPasswordException.cs
- ExpressionBindingCollection.cs
- ObjectItemAssemblyLoader.cs
- PagerStyle.cs
- WebPartMinimizeVerb.cs
- _ServiceNameStore.cs
- DynamicAttribute.cs
- ListViewDataItem.cs
- LayoutEditorPart.cs
- EpmCustomContentDeSerializer.cs