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
- TaiwanLunisolarCalendar.cs
- PerformanceCounterPermissionEntry.cs
- WsatServiceAddress.cs
- ApplicationSecurityInfo.cs
- FlowDocumentPageViewerAutomationPeer.cs
- SqlTopReducer.cs
- SafeEventLogWriteHandle.cs
- AttachmentService.cs
- TransformerConfigurationWizardBase.cs
- StructureChangedEventArgs.cs
- COM2Enum.cs
- Qualifier.cs
- DocumentSequence.cs
- HttpApplication.cs
- RequiredArgumentAttribute.cs
- MergeFailedEvent.cs
- OdbcTransaction.cs
- PersonalizationDictionary.cs
- DataControlImageButton.cs
- UnauthorizedAccessException.cs
- HotSpotCollection.cs
- WebPartDisplayMode.cs
- XmlRawWriterWrapper.cs
- CapabilitiesSection.cs
- RegistryPermission.cs
- RadioButtonPopupAdapter.cs
- ToolStripScrollButton.cs
- SelectionUIHandler.cs
- ShaderEffect.cs
- AutomationProperties.cs
- SqlDataSourceView.cs
- ResourceManager.cs
- StretchValidation.cs
- WebPartUtil.cs
- XmlCDATASection.cs
- HttpBufferlessInputStream.cs
- InputScopeNameConverter.cs
- UserMapPath.cs
- ModulesEntry.cs
- PassportIdentity.cs
- GridProviderWrapper.cs
- SystemColors.cs
- DbDataAdapter.cs
- XmlDocumentFragment.cs
- XPathItem.cs
- FlowLayoutPanelDesigner.cs
- CircleHotSpot.cs
- WebPartsPersonalization.cs
- FormViewPagerRow.cs
- SafeNativeMethods.cs
- Pair.cs
- ViewUtilities.cs
- StringReader.cs
- TypeElement.cs
- ACE.cs
- MorphHelpers.cs
- ListDataHelper.cs
- BindUriHelper.cs
- ImageCollectionCodeDomSerializer.cs
- DesignTimeVisibleAttribute.cs
- returneventsaver.cs
- PageParserFilter.cs
- VisualTarget.cs
- ArrayElementGridEntry.cs
- PackWebResponse.cs
- OleCmdHelper.cs
- WindowsFormsLinkLabel.cs
- PageContent.cs
- APCustomTypeDescriptor.cs
- COMException.cs
- Collection.cs
- TextBoxAutomationPeer.cs
- WpfSharedBamlSchemaContext.cs
- TextParagraph.cs
- ConnectionStringsExpressionEditor.cs
- TcpChannelHelper.cs
- DaylightTime.cs
- NativeMethods.cs
- LinkArea.cs
- ExternalCalls.cs
- SQLDouble.cs
- _NegoState.cs
- SQLBytesStorage.cs
- ImageConverter.cs
- CodeNamespaceCollection.cs
- DynamicPropertyHolder.cs
- SHA512.cs
- XhtmlBasicObjectListAdapter.cs
- GC.cs
- XD.cs
- XPathAncestorIterator.cs
- AttachmentService.cs
- ReadOnlyAttribute.cs
- ReachDocumentPageSerializer.cs
- indexingfiltermarshaler.cs
- IUnknownConstantAttribute.cs
- SecurityCookieModeValidator.cs
- UriSection.cs
- AmbientLight.cs
- Cursors.cs