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
- PtsPage.cs
- BulletedListEventArgs.cs
- BitmapEffectGroup.cs
- GroupBoxRenderer.cs
- IntAverageAggregationOperator.cs
- FrameSecurityDescriptor.cs
- CreateUserWizardAutoFormat.cs
- XmlBoundElement.cs
- ReflectionServiceProvider.cs
- CustomWebEventKey.cs
- BrowserTree.cs
- HandleRef.cs
- SafeNativeMethods.cs
- LoadedOrUnloadedOperation.cs
- ServiceManager.cs
- Size.cs
- ViewStateModeByIdAttribute.cs
- ZipIOFileItemStream.cs
- LocalizedNameDescriptionPair.cs
- UIElementAutomationPeer.cs
- ConsoleTraceListener.cs
- ProviderCollection.cs
- SevenBitStream.cs
- EntityDataSourceStatementEditorForm.cs
- AvTraceDetails.cs
- PerformanceCounterCategory.cs
- GridEntryCollection.cs
- OrderedEnumerableRowCollection.cs
- StringSorter.cs
- ComponentFactoryHelpers.cs
- CompoundFileReference.cs
- DataObjectSettingDataEventArgs.cs
- OleDbInfoMessageEvent.cs
- MobileUserControlDesigner.cs
- DynamicPropertyHolder.cs
- WorkflowTimerService.cs
- RoleManagerSection.cs
- ParameterCollectionEditorForm.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- FixedSOMTable.cs
- LineMetrics.cs
- EmptyReadOnlyDictionaryInternal.cs
- Int32Animation.cs
- Grid.cs
- ResXResourceSet.cs
- FontUnit.cs
- SimpleType.cs
- AutomationProperties.cs
- QuaternionAnimation.cs
- X509Certificate.cs
- precedingquery.cs
- Baml2006KnownTypes.cs
- PublisherIdentityPermission.cs
- MaterialGroup.cs
- CodeGenerator.cs
- PrimitiveXmlSerializers.cs
- MetadataPropertyCollection.cs
- FrameworkRichTextComposition.cs
- WizardForm.cs
- WebControlAdapter.cs
- XmlSecureResolver.cs
- WindowsContainer.cs
- SourceItem.cs
- DbMetaDataColumnNames.cs
- PathTooLongException.cs
- SQLDecimalStorage.cs
- ParallelEnumerable.cs
- CurrentTimeZone.cs
- HGlobalSafeHandle.cs
- XslNumber.cs
- StyleTypedPropertyAttribute.cs
- OracleString.cs
- TextBoxView.cs
- GenericWebPart.cs
- ImageKeyConverter.cs
- SourceCollection.cs
- TextContainerChangedEventArgs.cs
- WebPartConnectionsDisconnectVerb.cs
- KeyInterop.cs
- LinearQuaternionKeyFrame.cs
- _BaseOverlappedAsyncResult.cs
- StatusBarDrawItemEvent.cs
- arclist.cs
- Matrix3D.cs
- MetadataArtifactLoaderResource.cs
- SoapObjectReader.cs
- KeyInstance.cs
- LayoutInformation.cs
- XmlSchemaAnyAttribute.cs
- DSASignatureFormatter.cs
- Adorner.cs
- SmiRequestExecutor.cs
- SyndicationLink.cs
- BrowserDefinition.cs
- ZoneLinkButton.cs
- ListBoxChrome.cs
- Viewport2DVisual3D.cs
- TcpSocketManager.cs
- FrameworkContentElement.cs
- WorkflowViewStateService.cs