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
- XmlSchemaComplexContent.cs
- WebPartVerbsEventArgs.cs
- ResourceKey.cs
- MSG.cs
- Comparer.cs
- DirectoryObjectSecurity.cs
- DocumentOrderQuery.cs
- DataTableTypeConverter.cs
- OdbcEnvironment.cs
- Tag.cs
- DbTypeMap.cs
- IncrementalCompileAnalyzer.cs
- ConditionalAttribute.cs
- ScrollProperties.cs
- CheckBox.cs
- ArithmeticException.cs
- PropertyIDSet.cs
- Schema.cs
- UInt32.cs
- TrackingQuery.cs
- TimeSpanConverter.cs
- SingleTagSectionHandler.cs
- SqlUtil.cs
- ClientData.cs
- CompositeDesignerAccessibleObject.cs
- MethodBuilder.cs
- SystemNetHelpers.cs
- Span.cs
- FixedStringLookup.cs
- TrackingServices.cs
- WindowsHyperlink.cs
- WebPartMenu.cs
- SatelliteContractVersionAttribute.cs
- StyleModeStack.cs
- XmlSchemaAnnotation.cs
- Matrix.cs
- WebBrowserNavigatingEventHandler.cs
- VisualBrush.cs
- Qualifier.cs
- ToolStripDropDownItem.cs
- SequenceDesigner.cs
- Utilities.cs
- TransactionChannelFactory.cs
- Attribute.cs
- ScriptModule.cs
- DataGridViewRowCollection.cs
- CachedRequestParams.cs
- RoleGroup.cs
- WebHttpBinding.cs
- MessagingDescriptionAttribute.cs
- BamlResourceDeserializer.cs
- Attributes.cs
- CommandField.cs
- ChtmlPhoneCallAdapter.cs
- SpellerHighlightLayer.cs
- UIElementPropertyUndoUnit.cs
- SamlDelegatingWriter.cs
- ValidateNames.cs
- UriExt.cs
- MappableObjectManager.cs
- DBDataPermission.cs
- HMAC.cs
- ClientSettingsProvider.cs
- HttpHandlerActionCollection.cs
- GenericIdentity.cs
- SelectionPatternIdentifiers.cs
- XmlKeywords.cs
- NodeInfo.cs
- WebPartExportVerb.cs
- PersonalizationStateQuery.cs
- ChannelManager.cs
- ReadOnlyActivityGlyph.cs
- DataGridViewTextBoxColumn.cs
- DeleteHelper.cs
- WebPartConnectionsCancelEventArgs.cs
- WorkflowDefinitionDispenser.cs
- WizardForm.cs
- Knowncolors.cs
- ByteFacetDescriptionElement.cs
- ImageMap.cs
- DataSourceSelectArguments.cs
- UnsafeNativeMethods.cs
- LocalValueEnumerator.cs
- UInt32Converter.cs
- ByteStream.cs
- ErrorHandler.cs
- GreenMethods.cs
- PrimaryKeyTypeConverter.cs
- BroadcastEventHelper.cs
- CalendarDataBindingHandler.cs
- DashStyles.cs
- ModifiableIteratorCollection.cs
- CustomWebEventKey.cs
- FixedHighlight.cs
- RevocationPoint.cs
- SelectionEditingBehavior.cs
- AdapterUtil.cs
- ErrorTableItemStyle.cs
- LocatorManager.cs
- MailDefinition.cs