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
- ConditionalAttribute.cs
- StylusPlugInCollection.cs
- DocumentGrid.cs
- SemanticTag.cs
- NativeObjectSecurity.cs
- RenamedEventArgs.cs
- PolicyValidationException.cs
- TransactionsSectionGroup.cs
- TextContainer.cs
- SoapSchemaExporter.cs
- NativeMethods.cs
- Variable.cs
- LocalizedNameDescriptionPair.cs
- SizeAnimation.cs
- CompensatableSequenceActivity.cs
- HtmlSelect.cs
- SystemDropShadowChrome.cs
- RegexStringValidatorAttribute.cs
- IPAddress.cs
- GridItem.cs
- VideoDrawing.cs
- BamlWriter.cs
- FontInfo.cs
- DrawingImage.cs
- CommandID.cs
- ScalarConstant.cs
- AttributeQuery.cs
- ArrangedElementCollection.cs
- FixUp.cs
- ObservableCollection.cs
- InvalidCastException.cs
- BaseCollection.cs
- GeneralTransform.cs
- DictionaryTraceRecord.cs
- X500Name.cs
- SettingsAttributeDictionary.cs
- ValidationResult.cs
- PackagePart.cs
- CodeCompileUnit.cs
- ReceiveSecurityHeader.cs
- NavigationProperty.cs
- DataGridAddNewRow.cs
- EntityAdapter.cs
- SafeHandles.cs
- Pen.cs
- TypeConverterHelper.cs
- MergeExecutor.cs
- CodeDomConfigurationHandler.cs
- StrokeCollectionDefaultValueFactory.cs
- InkCollectionBehavior.cs
- ListView.cs
- ResolveDuplexCD1AsyncResult.cs
- XmlSerializerNamespaces.cs
- ByeMessageCD1.cs
- BamlRecords.cs
- XmlSerializationWriter.cs
- GlyphTypeface.cs
- selecteditemcollection.cs
- XmlUnspecifiedAttribute.cs
- InvalidCastException.cs
- UIServiceHelper.cs
- PropertyValue.cs
- SelectionUIService.cs
- SchemaImporterExtension.cs
- JoinCqlBlock.cs
- ComponentConverter.cs
- ProfileService.cs
- SchemaElementDecl.cs
- SoapFault.cs
- AuthorizationRule.cs
- MemoryResponseElement.cs
- WorkflowViewElement.cs
- ObjectViewEntityCollectionData.cs
- FieldNameLookup.cs
- SupportingTokenListenerFactory.cs
- DoubleAnimation.cs
- ActiveDocumentEvent.cs
- WorkflowDesigner.cs
- WebPartConnectVerb.cs
- RadioButtonPopupAdapter.cs
- ExpressionBindingCollection.cs
- RegistryKey.cs
- ColumnHeaderConverter.cs
- ServiceDefaults.cs
- ExpressionBinding.cs
- MemoryPressure.cs
- DataViewManager.cs
- TrustLevel.cs
- TextTrailingWordEllipsis.cs
- HtmlEmptyTagControlBuilder.cs
- Line.cs
- IndexingContentUnit.cs
- ListViewHitTestInfo.cs
- Input.cs
- GACIdentityPermission.cs
- MarshalByRefObject.cs
- SessionPageStatePersister.cs
- TextModifierScope.cs
- EventLogPropertySelector.cs
- ColumnResizeAdorner.cs