Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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.
//
//-----------------------------------------------------------------------------
/*
*/
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TemplateComponentConnector.cs
- SiteMapNodeItem.cs
- latinshape.cs
- GorillaCodec.cs
- recordstatescratchpad.cs
- NameGenerator.cs
- HostedAspNetEnvironment.cs
- SymLanguageVendor.cs
- JournalEntry.cs
- XsltSettings.cs
- ReferencedAssembly.cs
- SHA384Managed.cs
- XmlNavigatorFilter.cs
- InvalidFilterCriteriaException.cs
- WmpBitmapDecoder.cs
- RsaSecurityTokenAuthenticator.cs
- GeometryHitTestResult.cs
- DataServiceClientException.cs
- SafeRightsManagementQueryHandle.cs
- NumericUpDownAccelerationCollection.cs
- ThreadStaticAttribute.cs
- ConfigurationLocation.cs
- AspNetSynchronizationContext.cs
- SharedStatics.cs
- ArcSegment.cs
- RubberbandSelector.cs
- SamlSerializer.cs
- ScrollChrome.cs
- ServiceManagerHandle.cs
- Lazy.cs
- sqlser.cs
- DesignerDataSchemaClass.cs
- ApplicationContext.cs
- SortExpressionBuilder.cs
- CatalogPartChrome.cs
- PermissionRequestEvidence.cs
- DbgCompiler.cs
- AudioLevelUpdatedEventArgs.cs
- NumericExpr.cs
- Sql8ConformanceChecker.cs
- Ref.cs
- MatrixTransform.cs
- ScopedMessagePartSpecification.cs
- ConfigurationPermission.cs
- XmlEnumAttribute.cs
- ActionFrame.cs
- MsmqInputMessage.cs
- Border.cs
- WebPart.cs
- PointF.cs
- LinkButton.cs
- PropertyNames.cs
- Container.cs
- XmlSchemaSimpleTypeUnion.cs
- HtmlElement.cs
- _NestedMultipleAsyncResult.cs
- PerspectiveCamera.cs
- EntitySetDataBindingList.cs
- Math.cs
- RoutedEventHandlerInfo.cs
- DefaultTypeArgumentAttribute.cs
- OptimalBreakSession.cs
- UnknownExceptionActionHelper.cs
- ConfigurationElementProperty.cs
- PackagePartCollection.cs
- ActivityCodeDomReferenceService.cs
- EntitySetBaseCollection.cs
- SafeSystemMetrics.cs
- MappingItemCollection.cs
- _ScatterGatherBuffers.cs
- SecurityElement.cs
- DataGridViewAutoSizeModeEventArgs.cs
- EntityEntry.cs
- DuplicateContext.cs
- ListItemCollection.cs
- ExpressionLexer.cs
- EventTrigger.cs
- Base64Encoder.cs
- WebPartMovingEventArgs.cs
- Themes.cs
- RenderOptions.cs
- MembershipUser.cs
- MSAAWinEventWrap.cs
- WebExceptionStatus.cs
- FixedSOMLineRanges.cs
- InputLanguageManager.cs
- Merger.cs
- PersonalizationStateInfoCollection.cs
- ArraySet.cs
- RootBrowserWindowProxy.cs
- UTF7Encoding.cs
- ExpressionVisitorHelpers.cs
- SqlDeflator.cs
- X509UI.cs
- UpDownBase.cs
- XmlSequenceWriter.cs
- WebPartConnectionsDisconnectVerb.cs
- DecimalConverter.cs
- LocatorManager.cs
- FixedSOMImage.cs