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
- TabletDeviceInfo.cs
- StringSource.cs
- AutomationPatternInfo.cs
- sqlinternaltransaction.cs
- serverconfig.cs
- PackUriHelper.cs
- TimeSpanConverter.cs
- FormsAuthentication.cs
- XmlSerializableReader.cs
- KeyEventArgs.cs
- Drawing.cs
- AnchorEditor.cs
- CoTaskMemHandle.cs
- RoleService.cs
- ListBindingConverter.cs
- RequiredFieldValidator.cs
- EdmFunction.cs
- ScaleTransform.cs
- Matrix3DStack.cs
- AddInActivator.cs
- SingleQueryOperator.cs
- Attachment.cs
- FillRuleValidation.cs
- graph.cs
- StorageConditionPropertyMapping.cs
- X509Certificate2Collection.cs
- PointLight.cs
- PropertyDescriptorCollection.cs
- IteratorAsyncResult.cs
- DrawingDrawingContext.cs
- DateTimeFormatInfoScanner.cs
- ExecutionScope.cs
- SecurityDescriptor.cs
- RoleService.cs
- VerificationException.cs
- ExtensionFile.cs
- MinMaxParagraphWidth.cs
- UnionCqlBlock.cs
- StyleBamlTreeBuilder.cs
- LoggedException.cs
- XslTransformFileEditor.cs
- RegistryPermission.cs
- MD5.cs
- EpmSyndicationContentSerializer.cs
- Adorner.cs
- EntryPointNotFoundException.cs
- NavigationWindow.cs
- PropertyChangedEventArgs.cs
- FontStretch.cs
- FixedSOMImage.cs
- Rect.cs
- AtomPub10CategoriesDocumentFormatter.cs
- SizeConverter.cs
- QueryCacheKey.cs
- ServiceReference.cs
- CaseInsensitiveHashCodeProvider.cs
- HostingMessageProperty.cs
- ImageMetadata.cs
- ShapingEngine.cs
- SqlInfoMessageEvent.cs
- XsltFunctions.cs
- CodeDOMUtility.cs
- PersistChildrenAttribute.cs
- TypeSystem.cs
- ListQueryResults.cs
- DynamicActivityXamlReader.cs
- PtsCache.cs
- Debug.cs
- NamespaceInfo.cs
- Model3DGroup.cs
- ReceiveMessageContent.cs
- securitymgrsite.cs
- CodeRegionDirective.cs
- CrossSiteScriptingValidation.cs
- HttpException.cs
- StrongName.cs
- DataSourceCache.cs
- EntityConnection.cs
- ChildTable.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- FileClassifier.cs
- MemoryMappedView.cs
- MobileControlBuilder.cs
- TransformerConfigurationWizardBase.cs
- ClonableStack.cs
- ArraySortHelper.cs
- TextFindEngine.cs
- MasterPageParser.cs
- SectionInformation.cs
- Attributes.cs
- File.cs
- MatrixCamera.cs
- TextSelectionHighlightLayer.cs
- MatrixAnimationBase.cs
- SR.cs
- _NetworkingPerfCounters.cs
- GuidConverter.cs
- DataBoundControlAdapter.cs
- WindowsStartMenu.cs
- FaultContext.cs