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
- DependencyPropertyKey.cs
- ContentPosition.cs
- ToolStripSplitStackLayout.cs
- EntityDataSourceMemberPath.cs
- LayoutManager.cs
- DataAdapter.cs
- SmiEventSink_Default.cs
- WsdlWriter.cs
- QueryCacheEntry.cs
- DrawingContext.cs
- VirtualPathProvider.cs
- BaseParaClient.cs
- TextSelection.cs
- EventSinkHelperWriter.cs
- RuleSetCollection.cs
- CheckBoxRenderer.cs
- TableLayoutSettingsTypeConverter.cs
- SqlDataAdapter.cs
- XPathAncestorQuery.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- ToolStripPanelDesigner.cs
- XmlCustomFormatter.cs
- XmlElementAttribute.cs
- SafeArrayRankMismatchException.cs
- DbConnectionHelper.cs
- HttpConfigurationContext.cs
- TableCell.cs
- PrintPreviewControl.cs
- _DomainName.cs
- OledbConnectionStringbuilder.cs
- XamlBuildTaskServices.cs
- RectIndependentAnimationStorage.cs
- CodeVariableDeclarationStatement.cs
- InheritanceRules.cs
- TypeConverterValueSerializer.cs
- ObjectQueryProvider.cs
- HandleCollector.cs
- WrappedReader.cs
- AdapterUtil.cs
- Calendar.cs
- LogReserveAndAppendState.cs
- SQLRoleProvider.cs
- SrgsElementFactoryCompiler.cs
- ColorConvertedBitmap.cs
- ApplicationException.cs
- FlowLayoutPanel.cs
- SystemColorTracker.cs
- LightweightEntityWrapper.cs
- WebBrowserBase.cs
- SelectionItemPattern.cs
- BatchWriter.cs
- CompilerLocalReference.cs
- SafePipeHandle.cs
- ProcessHost.cs
- TextFormatterContext.cs
- JsonDeserializer.cs
- ButtonAutomationPeer.cs
- XmlNotation.cs
- WebBrowser.cs
- StatusStrip.cs
- OleDbRowUpdatedEvent.cs
- EntityContainerRelationshipSet.cs
- PanelStyle.cs
- ToolBarOverflowPanel.cs
- QilIterator.cs
- UriScheme.cs
- HtmlElementCollection.cs
- NamedObject.cs
- StylusCollection.cs
- TypedElement.cs
- MetadataItem.cs
- SqlTriggerAttribute.cs
- ImageClickEventArgs.cs
- AuthenticatedStream.cs
- Item.cs
- WorkItem.cs
- Maps.cs
- securitycriticaldata.cs
- StreamingContext.cs
- SponsorHelper.cs
- DataControlImageButton.cs
- NameValuePair.cs
- CatalogPartCollection.cs
- DataGridPagerStyle.cs
- ExcCanonicalXml.cs
- MimeTypeAttribute.cs
- WebPartDeleteVerb.cs
- ConfigurationErrorsException.cs
- XmlAnyElementAttribute.cs
- RoamingStoreFile.cs
- _UncName.cs
- MSG.cs
- SHA1CryptoServiceProvider.cs
- WorkflowTimerService.cs
- ModelItemCollectionImpl.cs
- CompiledAction.cs
- GrammarBuilderBase.cs
- FileDataSourceCache.cs
- SamlDoNotCacheCondition.cs
- LoginDesignerUtil.cs