Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- Effect.cs
- ConstNode.cs
- LateBoundBitmapDecoder.cs
- BaseInfoTable.cs
- NativeRightsManagementAPIsStructures.cs
- PropertyNames.cs
- ServiceInstallComponent.cs
- XmlILOptimizerVisitor.cs
- AlgoModule.cs
- CursorConverter.cs
- PeerDuplexChannelListener.cs
- ObjectFullSpanRewriter.cs
- RelationshipManager.cs
- SoapHeaders.cs
- DataGridViewColumnTypeEditor.cs
- ModelItemCollection.cs
- BitmapSourceSafeMILHandle.cs
- DoubleSumAggregationOperator.cs
- _ContextAwareResult.cs
- DesignerToolStripControlHost.cs
- StdValidatorsAndConverters.cs
- DataSourceControl.cs
- CodeCatchClause.cs
- TimeoutValidationAttribute.cs
- XMLSyntaxException.cs
- CodeTypeReferenceCollection.cs
- RuleSetDialog.cs
- SqlRowUpdatedEvent.cs
- SamlAuthorizationDecisionClaimResource.cs
- Track.cs
- TextureBrush.cs
- CollectionBuilder.cs
- XmlnsCompatibleWithAttribute.cs
- LoginUtil.cs
- MenuCommandsChangedEventArgs.cs
- HttpPostProtocolReflector.cs
- ProjectionPruner.cs
- ConnectionsZoneDesigner.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- WindowsPrincipal.cs
- AutoGeneratedField.cs
- ChtmlFormAdapter.cs
- PolygonHotSpot.cs
- DebugInfo.cs
- RewritingValidator.cs
- _DomainName.cs
- HtmlControlPersistable.cs
- UriTemplateTableMatchCandidate.cs
- PointAnimation.cs
- ImageDrawing.cs
- EdmError.cs
- HtmlHistory.cs
- ContentElementAutomationPeer.cs
- RawStylusInputCustomData.cs
- ReachIDocumentPaginatorSerializerAsync.cs
- TextBoxView.cs
- UnionExpr.cs
- SqlTopReducer.cs
- AdRotator.cs
- Pen.cs
- RegionData.cs
- DesignerSerializerAttribute.cs
- InputBinder.cs
- TypeBrowser.xaml.cs
- ContourSegment.cs
- HttpModuleCollection.cs
- BooleanAnimationUsingKeyFrames.cs
- NumberFormatInfo.cs
- Peer.cs
- SubordinateTransaction.cs
- SoapClientProtocol.cs
- coordinator.cs
- RecognizerStateChangedEventArgs.cs
- JsonEnumDataContract.cs
- BitFlagsGenerator.cs
- StorageMappingItemLoader.cs
- HotSpot.cs
- TextReader.cs
- OdbcEnvironment.cs
- ManipulationDeltaEventArgs.cs
- MimeTypeMapper.cs
- ClusterRegistryConfigurationProvider.cs
- FolderBrowserDialog.cs
- ParallelDesigner.cs
- WorkflowControlEndpoint.cs
- TextProperties.cs
- DbgCompiler.cs
- DataGridItemEventArgs.cs
- LinqDataSourceStatusEventArgs.cs
- DataSourceHelper.cs
- XmlILTrace.cs
- Variable.cs
- DrawingState.cs
- NotSupportedException.cs
- TreeNode.cs
- PageContentCollection.cs
- SettingsPropertyValue.cs
- HtmlTableRowCollection.cs
- CommandLibraryHelper.cs
- CodeEntryPointMethod.cs