Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / ConstructorNeedsTagAttribute.cs / 1 / ConstructorNeedsTagAttribute.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Web.UI {
using System;
using System.ComponentModel;
using System.Security.Permissions;
///
/// Allows a control to specify that it needs a
/// tag name in its constructor.
///
[AttributeUsage(AttributeTargets.Class)]
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public sealed class ConstructorNeedsTagAttribute: Attribute {
bool needsTag = false;
///
/// Initializes a new instance of the class.
///
public ConstructorNeedsTagAttribute() {
}
///
/// Initializes a new instance of the class.
///
public ConstructorNeedsTagAttribute(bool needsTag) {
this.needsTag = needsTag;
}
///
/// Indicates whether a control needs a tag in its contstructor. This property is read-only.
///
public bool NeedsTag {
get {
return needsTag;
}
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PropertyCollection.cs
- WebPartConnectionsCancelVerb.cs
- SingleSelectRootGridEntry.cs
- LayoutDump.cs
- TextTreeTextNode.cs
- CursorInteropHelper.cs
- EdmMember.cs
- TrustManagerPromptUI.cs
- MessageDecoder.cs
- SourceFileBuildProvider.cs
- ContainerSelectorActiveEvent.cs
- ServiceHostingEnvironment.cs
- StateMachineExecutionState.cs
- DelegateBodyWriter.cs
- IncrementalReadDecoders.cs
- Mapping.cs
- SHA384Managed.cs
- ControlIdConverter.cs
- DataGridViewElement.cs
- ToolboxComponentsCreatedEventArgs.cs
- HwndMouseInputProvider.cs
- RuntimeWrappedException.cs
- UIElement.cs
- EpmSourceTree.cs
- GridViewColumn.cs
- NegotiationTokenAuthenticator.cs
- QilReplaceVisitor.cs
- CancelEventArgs.cs
- TransformerConfigurationWizardBase.cs
- StreamBodyWriter.cs
- Environment.cs
- ServiceControllerDesigner.cs
- CharacterBuffer.cs
- PresentationTraceSources.cs
- DBSchemaRow.cs
- __Error.cs
- PropertyMappingExceptionEventArgs.cs
- HttpRequestCacheValidator.cs
- RIPEMD160.cs
- ErrorHandlerFaultInfo.cs
- HotCommands.cs
- SqlParameter.cs
- SqlClientFactory.cs
- BufferedReadStream.cs
- BitmapCodecInfoInternal.cs
- Pair.cs
- BaseProcessProtocolHandler.cs
- DataFormat.cs
- LicFileLicenseProvider.cs
- EdmItemCollection.cs
- XmlElement.cs
- SoapFault.cs
- ArraySegment.cs
- StrokeRenderer.cs
- RuntimeWrappedException.cs
- TcpConnectionPoolSettingsElement.cs
- XmlWriter.cs
- ExpressionBuilder.cs
- BmpBitmapDecoder.cs
- TransformProviderWrapper.cs
- StringOutput.cs
- ToolStripOverflow.cs
- DateTime.cs
- RectConverter.cs
- ParenExpr.cs
- OptionalRstParameters.cs
- documentsequencetextview.cs
- SQLDecimalStorage.cs
- QueueProcessor.cs
- HttpCacheVary.cs
- OperationAbortedException.cs
- MatrixKeyFrameCollection.cs
- XmlAttributeHolder.cs
- UniqueIdentifierService.cs
- ReliabilityContractAttribute.cs
- EventLogRecord.cs
- Options.cs
- PanelDesigner.cs
- TextPointer.cs
- ClusterSafeNativeMethods.cs
- ToolboxDataAttribute.cs
- UserControlParser.cs
- LayoutDump.cs
- ADMembershipUser.cs
- TokenBasedSetEnumerator.cs
- AsyncStreamReader.cs
- ToolStripItemTextRenderEventArgs.cs
- ProcessActivityTreeOptions.cs
- AggregateNode.cs
- IndexOutOfRangeException.cs
- Update.cs
- PrivilegeNotHeldException.cs
- TagMapInfo.cs
- Menu.cs
- ConfigPathUtility.cs
- WebPartCatalogAddVerb.cs
- DataError.cs
- DataGridSortingEventArgs.cs
- WebPartConnectionsCancelEventArgs.cs
- RawKeyboardInputReport.cs