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
- UnauthorizedAccessException.cs
- HtmlImage.cs
- AssemblyHelper.cs
- ScrollEvent.cs
- BrushMappingModeValidation.cs
- KnownTypes.cs
- XmlImplementation.cs
- InvalidStoreProtectionKeyException.cs
- WorkflowQueue.cs
- QuaternionIndependentAnimationStorage.cs
- EntityDataSourceWizardForm.cs
- XmlDocumentType.cs
- EditingCoordinator.cs
- Activity.cs
- MenuItemStyle.cs
- RequestQueryParser.cs
- ZoomComboBox.cs
- ConnectionsZoneAutoFormat.cs
- FormCollection.cs
- ResourceType.cs
- _ProxyRegBlob.cs
- StorageEntityContainerMapping.cs
- DefaultPropertyAttribute.cs
- TextFindEngine.cs
- IntSumAggregationOperator.cs
- RegionData.cs
- Section.cs
- DBAsyncResult.cs
- TextEditorCharacters.cs
- PersonalizableTypeEntry.cs
- StringValidator.cs
- XhtmlConformanceSection.cs
- Queue.cs
- ConstraintEnumerator.cs
- PropertyIDSet.cs
- DSACryptoServiceProvider.cs
- InteropAutomationProvider.cs
- Permission.cs
- InternalPermissions.cs
- QilStrConcatenator.cs
- coordinatorscratchpad.cs
- AppDomainProtocolHandler.cs
- ConnectorSelectionGlyph.cs
- RealProxy.cs
- ITreeGenerator.cs
- PeerName.cs
- XmlSchemaAppInfo.cs
- Keyboard.cs
- StringKeyFrameCollection.cs
- EdmComplexTypeAttribute.cs
- DataKey.cs
- MessageEnumerator.cs
- MediaSystem.cs
- FocusWithinProperty.cs
- DataGridTableCollection.cs
- Button.cs
- TextClipboardData.cs
- HandlerBase.cs
- RangeValidator.cs
- PropertyGeneratedEventArgs.cs
- ProcessRequestArgs.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- ProcessProtocolHandler.cs
- DependencyPropertyValueSerializer.cs
- safelink.cs
- AdornerHitTestResult.cs
- Matrix.cs
- PrinterUnitConvert.cs
- ListViewItem.cs
- ButtonBaseAdapter.cs
- AppDomain.cs
- Aggregates.cs
- WorkflowViewElement.cs
- Translator.cs
- OleDbParameter.cs
- KeyboardEventArgs.cs
- XmlSigningNodeWriter.cs
- milexports.cs
- FlowDocumentView.cs
- FixedSOMContainer.cs
- RTLAwareMessageBox.cs
- SystemIPGlobalProperties.cs
- ToolStripSplitButton.cs
- ContentOperations.cs
- EmissiveMaterial.cs
- ServicePointManagerElement.cs
- ExpandoClass.cs
- ConstraintEnumerator.cs
- XmlWriter.cs
- InstanceOwnerQueryResult.cs
- DigitShape.cs
- Automation.cs
- InvalidWMPVersionException.cs
- ParagraphVisual.cs
- DrawListViewSubItemEventArgs.cs
- Decimal.cs
- EntityDataSourceReferenceGroup.cs
- FormViewPageEventArgs.cs
- HttpHandlerActionCollection.cs
- ToolStripDropDownItemDesigner.cs