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
- XmlNodeReader.cs
- DataExpression.cs
- CachedPathData.cs
- StaticFileHandler.cs
- OLEDB_Enum.cs
- HtmlInputSubmit.cs
- UnsafeNativeMethodsCLR.cs
- SafeMILHandleMemoryPressure.cs
- MultipartIdentifier.cs
- RoutedEventHandlerInfo.cs
- BaseUriHelper.cs
- Compiler.cs
- FatalException.cs
- ComponentEditorForm.cs
- FieldNameLookup.cs
- Matrix3D.cs
- CollectionContainer.cs
- QueryOptionExpression.cs
- NeedSkipTokenVisitor.cs
- Tablet.cs
- ApplicationDirectoryMembershipCondition.cs
- RelatedView.cs
- HtmlControl.cs
- DataKeyPropertyAttribute.cs
- NumberAction.cs
- RangeValidator.cs
- ReaderWriterLock.cs
- WrappedIUnknown.cs
- LambdaCompiler.Unary.cs
- MouseWheelEventArgs.cs
- DataServiceResponse.cs
- XamlToRtfParser.cs
- DESCryptoServiceProvider.cs
- AppDomainProtocolHandler.cs
- ImageUrlEditor.cs
- SupportingTokenListenerFactory.cs
- SamlNameIdentifierClaimResource.cs
- ConstrainedDataObject.cs
- UIElement3D.cs
- TabPanel.cs
- TextServicesDisplayAttribute.cs
- UserControlCodeDomTreeGenerator.cs
- elementinformation.cs
- MatrixStack.cs
- BuildProvider.cs
- TimestampInformation.cs
- XmlQueryType.cs
- XmlDesigner.cs
- HttpRuntimeSection.cs
- XmlSchemaException.cs
- SerTrace.cs
- WebPartChrome.cs
- ExclusiveHandleList.cs
- HttpResponseHeader.cs
- TokenBasedSetEnumerator.cs
- XDRSchema.cs
- DetailsViewDesigner.cs
- TextHidden.cs
- DataBinder.cs
- ConnectionManagementSection.cs
- DirectoryRootQuery.cs
- SmtpNetworkElement.cs
- NavigationPropertyEmitter.cs
- CustomAttributeFormatException.cs
- RadioButtonStandardAdapter.cs
- Literal.cs
- ConfigXmlReader.cs
- XmlSerializerAssemblyAttribute.cs
- DllHostedComPlusServiceHost.cs
- ObjectDataProvider.cs
- HashHelper.cs
- PathFigureCollection.cs
- FunctionUpdateCommand.cs
- BindingMemberInfo.cs
- EnglishPluralizationService.cs
- ReflectionTypeLoadException.cs
- ExtentJoinTreeNode.cs
- ManifestSignatureInformation.cs
- GlyphInfoList.cs
- SettingsProperty.cs
- WpfPayload.cs
- StringPropertyBuilder.cs
- DataGridViewCellValueEventArgs.cs
- GridViewEditEventArgs.cs
- SqlTriggerAttribute.cs
- UpdateTracker.cs
- CurrentChangingEventManager.cs
- PromptStyle.cs
- SafeCloseHandleCritical.cs
- RepeaterItemCollection.cs
- HtmlForm.cs
- FileSystemInfo.cs
- BasicKeyConstraint.cs
- RelationshipType.cs
- BuilderElements.cs
- DbConnectionPoolIdentity.cs
- ExpressionNormalizer.cs
- WindowsStreamSecurityBindingElement.cs
- SignatureDescription.cs
- BitmapEffectCollection.cs