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
- DesignerAdapterAttribute.cs
- TraceSection.cs
- XmlBoundElement.cs
- HttpInputStream.cs
- ToggleButtonAutomationPeer.cs
- ViewService.cs
- HttpEncoderUtility.cs
- SignatureHelper.cs
- BevelBitmapEffect.cs
- MonitoringDescriptionAttribute.cs
- Control.cs
- StrongTypingException.cs
- BindingMAnagerBase.cs
- XPathParser.cs
- SQLSingle.cs
- WindowsAuthenticationEventArgs.cs
- RawStylusInputReport.cs
- WebExceptionStatus.cs
- DbModificationClause.cs
- DeleteIndexBinder.cs
- Util.cs
- CodeTypeConstructor.cs
- GenericIdentity.cs
- basevalidator.cs
- DeviceContexts.cs
- ActivationServices.cs
- RefExpr.cs
- newinstructionaction.cs
- baseaxisquery.cs
- VariableQuery.cs
- MulticastDelegate.cs
- EtwTrace.cs
- HwndStylusInputProvider.cs
- Property.cs
- ObjectQueryProvider.cs
- Proxy.cs
- GifBitmapDecoder.cs
- SelectionItemPattern.cs
- StylusPointPropertyId.cs
- DesigntimeLicenseContext.cs
- SqlBuilder.cs
- XmlNodeList.cs
- TextServicesPropertyRanges.cs
- CheckBoxField.cs
- SystemIPv6InterfaceProperties.cs
- DataControlPagerLinkButton.cs
- GroupBoxAutomationPeer.cs
- DragAssistanceManager.cs
- XmlSchemaExternal.cs
- DataServiceHostFactory.cs
- StackOverflowException.cs
- RegexMatchCollection.cs
- PersistChildrenAttribute.cs
- BitmapCacheBrush.cs
- WindowsImpersonationContext.cs
- ClassData.cs
- SmiContext.cs
- DescendantOverDescendantQuery.cs
- CodeBlockBuilder.cs
- Typography.cs
- AspCompat.cs
- Models.cs
- ChannelProtectionRequirements.cs
- MarkupWriter.cs
- AutomationElementCollection.cs
- Activator.cs
- CultureTable.cs
- KnownBoxes.cs
- ReadOnlyAttribute.cs
- BamlLocalizableResource.cs
- MemberHolder.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- odbcmetadatafactory.cs
- DataServiceQueryContinuation.cs
- SoapSchemaMember.cs
- NetNamedPipeBinding.cs
- DependencyObjectPropertyDescriptor.cs
- SafeThreadHandle.cs
- LinqDataSourceUpdateEventArgs.cs
- HandlerBase.cs
- HostExecutionContextManager.cs
- XPathNodePointer.cs
- HwndMouseInputProvider.cs
- LiteralControl.cs
- DictionaryTraceRecord.cs
- SparseMemoryStream.cs
- InputDevice.cs
- EventLogPermissionEntryCollection.cs
- MissingMethodException.cs
- SpecialNameAttribute.cs
- CapabilitiesUse.cs
- ActivityCollectionMarkupSerializer.cs
- ThreadStateException.cs
- Latin1Encoding.cs
- HMACSHA256.cs
- VirtualizingPanel.cs
- DoWorkEventArgs.cs
- VirtualPath.cs
- TrustManager.cs
- ClearCollection.cs