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
- FontConverter.cs
- RichTextBoxConstants.cs
- MetadataCacheItem.cs
- AppSettingsReader.cs
- GestureRecognizer.cs
- HttpProfileBase.cs
- DataGridRow.cs
- XmlILConstructAnalyzer.cs
- X509CertificateChain.cs
- Missing.cs
- LocalizationParserHooks.cs
- SimpleRecyclingCache.cs
- ErrorTableItemStyle.cs
- PageThemeParser.cs
- BaseTemplateCodeDomTreeGenerator.cs
- XPathMultyIterator.cs
- safePerfProviderHandle.cs
- DataFormats.cs
- GB18030Encoding.cs
- RotateTransform.cs
- DesigntimeLicenseContextSerializer.cs
- DrawingImage.cs
- ThreadLocal.cs
- PeerNameRegistration.cs
- DataServiceHost.cs
- SiteMapProvider.cs
- ActiveXHost.cs
- ListSortDescriptionCollection.cs
- ToolStripDropDownMenu.cs
- SqlClientMetaDataCollectionNames.cs
- AutomationAttributeInfo.cs
- Stack.cs
- ContainerAction.cs
- SqlRetyper.cs
- ToolStripMenuItem.cs
- DataBindingList.cs
- SqlDataAdapter.cs
- PackageDigitalSignatureManager.cs
- OptimizerPatterns.cs
- XMLUtil.cs
- DrawingBrush.cs
- Lasso.cs
- AnonymousIdentificationModule.cs
- Journaling.cs
- BidOverLoads.cs
- WmpBitmapDecoder.cs
- RadioButtonStandardAdapter.cs
- CreateDataSourceDialog.cs
- Empty.cs
- StyleXamlParser.cs
- ZoneButton.cs
- ProgressBarHighlightConverter.cs
- ReadOnlyState.cs
- ADMembershipProvider.cs
- UseLicense.cs
- OleDbTransaction.cs
- PathGeometry.cs
- AlternationConverter.cs
- PartialCachingAttribute.cs
- CommonServiceBehaviorElement.cs
- SurrogateEncoder.cs
- ObjectDataSourceWizardForm.cs
- cache.cs
- cookieexception.cs
- ToolStripItemTextRenderEventArgs.cs
- SqlStream.cs
- MessageLogTraceRecord.cs
- DetailsView.cs
- followingsibling.cs
- Qualifier.cs
- DataColumnCollection.cs
- ConstraintManager.cs
- EventMappingSettingsCollection.cs
- FixedSOMImage.cs
- WebHttpElement.cs
- StructuredProperty.cs
- TimelineGroup.cs
- GraphicsContext.cs
- PeerPresenceInfo.cs
- TextDecoration.cs
- BindingValueChangedEventArgs.cs
- ScriptHandlerFactory.cs
- StreamSecurityUpgradeProvider.cs
- Registry.cs
- SQLInt16.cs
- _LocalDataStore.cs
- FontSourceCollection.cs
- BlobPersonalizationState.cs
- MediaEntryAttribute.cs
- TransformerTypeCollection.cs
- Group.cs
- NetworkCredential.cs
- SecureEnvironment.cs
- SmtpReplyReader.cs
- EntityTransaction.cs
- ICspAsymmetricAlgorithm.cs
- UnsafeNativeMethods.cs
- CompilationUnit.cs
- GradientBrush.cs
- DataRecordObjectView.cs