Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / 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;
///
/// 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.
///
[AttributeUsage(AttributeTargets.Class)]
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public sealed class FileLevelControlBuilderAttribute : Attribute {
///
///
/// The default object is a
/// builder. This field is read-only.
///
public static readonly FileLevelControlBuilderAttribute Default = new FileLevelControlBuilderAttribute(null);
private Type builderType = null;
///
///
public FileLevelControlBuilderAttribute(Type builderType) {
this.builderType = builderType;
}
///
/// Indicates XXX. This property is read-only.
///
public Type BuilderType {
get {
return builderType;
}
}
///
///
/// [To be supplied.]
///
public override int GetHashCode() {
return builderType.GetHashCode();
}
///
///
///
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
- PassportAuthentication.cs
- ResXFileRef.cs
- ParentQuery.cs
- Util.cs
- RequestNavigateEventArgs.cs
- RightsManagementLicense.cs
- GatewayDefinition.cs
- XhtmlTextWriter.cs
- DataBoundControlAdapter.cs
- ReachPrintTicketSerializer.cs
- MembershipUser.cs
- ReadOnlyMetadataCollection.cs
- ButtonChrome.cs
- PixelFormats.cs
- SafeNativeMethods.cs
- LineServicesCallbacks.cs
- UnmanagedHandle.cs
- SuppressMergeCheckAttribute.cs
- wgx_render.cs
- PageSettings.cs
- Interlocked.cs
- ResourceExpressionBuilder.cs
- ToolStripDropDown.cs
- ClientScriptItemCollection.cs
- PackageDigitalSignatureManager.cs
- Int64Storage.cs
- SafeFindHandle.cs
- TreeNodeBinding.cs
- PointF.cs
- SignerInfo.cs
- InternalDuplexChannelListener.cs
- BindingOperations.cs
- brushes.cs
- HttpListenerResponse.cs
- UnsafeNativeMethods.cs
- TimeoutValidationAttribute.cs
- WsatRegistrationHeader.cs
- WMIGenerator.cs
- PointAnimationUsingKeyFrames.cs
- CompressStream.cs
- XmlSchemaType.cs
- RelatedCurrencyManager.cs
- ApplicationManager.cs
- SafeNativeMethods.cs
- ExtentCqlBlock.cs
- ClientScriptManager.cs
- ApplicationId.cs
- FileStream.cs
- GAC.cs
- MetafileHeader.cs
- odbcmetadatacollectionnames.cs
- PngBitmapDecoder.cs
- AttributeTableBuilder.cs
- RelationshipType.cs
- CompileXomlTask.cs
- InkCollectionBehavior.cs
- COMException.cs
- CurrencyManager.cs
- DataBinder.cs
- DnsPermission.cs
- VectorCollectionConverter.cs
- PipelineModuleStepContainer.cs
- HybridDictionary.cs
- ErrorEventArgs.cs
- TextFormatterHost.cs
- SortedSet.cs
- AttachInfo.cs
- Path.cs
- ExpressionList.cs
- TransformedBitmap.cs
- XmlAggregates.cs
- SymLanguageType.cs
- PluggableProtocol.cs
- PrivateFontCollection.cs
- HttpHandlerAction.cs
- MetadataArtifactLoaderCompositeResource.cs
- UInt32Converter.cs
- State.cs
- ConnectionStringEditor.cs
- HttpResponse.cs
- ReliableSessionElement.cs
- Calendar.cs
- AnonymousIdentificationSection.cs
- Config.cs
- AnnotationComponentChooser.cs
- MatrixTransform.cs
- TreeNodeEventArgs.cs
- Model3D.cs
- XmlIncludeAttribute.cs
- listviewsubitemcollectioneditor.cs
- ActiveXHelper.cs
- PropertyTabChangedEvent.cs
- DLinqDataModelProvider.cs
- WorkflowEnvironment.cs
- AudioFormatConverter.cs
- HttpStaticObjectsCollectionBase.cs
- BrowserCapabilitiesCompiler.cs
- HandlerFactoryCache.cs
- OutputCacheModule.cs
- Line.cs