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
- ColumnWidthChangingEvent.cs
- SimpleExpression.cs
- WSSecurityOneDotZeroSendSecurityHeader.cs
- DataGridViewHeaderCell.cs
- TypeValidationEventArgs.cs
- keycontainerpermission.cs
- HttpCacheVaryByContentEncodings.cs
- InputScope.cs
- IteratorDescriptor.cs
- StickyNoteAnnotations.cs
- WebFormsRootDesigner.cs
- TransformPattern.cs
- MultipartIdentifier.cs
- ResetableIterator.cs
- JsonXmlDataContract.cs
- MissingMemberException.cs
- _Rfc2616CacheValidators.cs
- KerberosRequestorSecurityTokenAuthenticator.cs
- PackWebRequest.cs
- Int16AnimationUsingKeyFrames.cs
- SkewTransform.cs
- TextRangeEdit.cs
- StreamUpgradeBindingElement.cs
- COM2ExtendedBrowsingHandler.cs
- WebPartExportVerb.cs
- FixedElement.cs
- TypeConverters.cs
- ListBoxItemAutomationPeer.cs
- DecimalAnimation.cs
- ColorIndependentAnimationStorage.cs
- UndoManager.cs
- Glyph.cs
- ProxySimple.cs
- PropertyChangingEventArgs.cs
- UdpRetransmissionSettings.cs
- HMACRIPEMD160.cs
- UpDownEvent.cs
- TextViewSelectionProcessor.cs
- DocumentViewerBase.cs
- HeaderCollection.cs
- UIAgentInitializationException.cs
- MatrixValueSerializer.cs
- ComboBoxRenderer.cs
- NullableIntSumAggregationOperator.cs
- Frame.cs
- IndexingContentUnit.cs
- StrokeNodeData.cs
- cache.cs
- BrushMappingModeValidation.cs
- DataGridViewSelectedCellCollection.cs
- DocumentSchemaValidator.cs
- ContextProperty.cs
- SizeConverter.cs
- CheckBox.cs
- CodePageEncoding.cs
- ModuleElement.cs
- DbModificationCommandTree.cs
- PathFigure.cs
- PreProcessor.cs
- RTLAwareMessageBox.cs
- OdbcFactory.cs
- SettingsAttributeDictionary.cs
- WsiProfilesElement.cs
- AssemblyGen.cs
- DecoderExceptionFallback.cs
- XPathBinder.cs
- ExeContext.cs
- BamlRecordHelper.cs
- HelpProvider.cs
- Vector3DAnimation.cs
- SystemThemeKey.cs
- ToolStripActionList.cs
- ObservableDictionary.cs
- QilStrConcatenator.cs
- MarkupProperty.cs
- XmlSchemaAnyAttribute.cs
- MarginsConverter.cs
- arclist.cs
- UriTemplateDispatchFormatter.cs
- ProfileService.cs
- WindowsSlider.cs
- LoginName.cs
- StreamWriter.cs
- CommonRemoteMemoryBlock.cs
- EventInfo.cs
- StorageScalarPropertyMapping.cs
- XmlDataSourceView.cs
- ListParaClient.cs
- InternalEnumValidatorAttribute.cs
- WindowsRegion.cs
- MessageQueueCriteria.cs
- InfoCardKeyedHashAlgorithm.cs
- CacheEntry.cs
- ToolStripRenderer.cs
- TypeHelper.cs
- NameValueConfigurationElement.cs
- HtmlInputControl.cs
- NotifyInputEventArgs.cs
- CodeAccessPermission.cs
- ResizeGrip.cs