Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / ConstructorNeedsTagAttribute.cs / 1305376 / 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)]
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;
}
}
}
}
// 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
- GenericTypeParameterBuilder.cs
- PictureBox.cs
- Panel.cs
- DataSourceControlBuilder.cs
- WinInetCache.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- LogicalExpr.cs
- ConfigUtil.cs
- SqlDataSourceSelectingEventArgs.cs
- TextBlockAutomationPeer.cs
- TimersDescriptionAttribute.cs
- DataBindingCollection.cs
- InvalidEnumArgumentException.cs
- VisualStyleElement.cs
- WithStatement.cs
- ClientUrlResolverWrapper.cs
- IdentityReference.cs
- Predicate.cs
- Command.cs
- InstanceView.cs
- KnownBoxes.cs
- SaveFileDialogDesigner.cs
- ObjectDataSourceView.cs
- DataTrigger.cs
- XamlHttpHandlerFactory.cs
- WebControlAdapter.cs
- MenuItem.cs
- DBCommand.cs
- SchemaMapping.cs
- EventProviderClassic.cs
- ITextView.cs
- Parameter.cs
- EditingCommands.cs
- SqlRecordBuffer.cs
- PreviewKeyDownEventArgs.cs
- DelegatingStream.cs
- Triangle.cs
- ItemsControlAutomationPeer.cs
- SignedXml.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- XmlNamespaceManager.cs
- VisualTreeHelper.cs
- CommunicationObject.cs
- BitmapDecoder.cs
- XpsPackagingPolicy.cs
- _UriSyntax.cs
- SafeArrayRankMismatchException.cs
- TimeSpanValidator.cs
- GeneralTransform3DTo2D.cs
- LocalFileSettingsProvider.cs
- FormViewInsertedEventArgs.cs
- ErasingStroke.cs
- BamlWriter.cs
- EncodingNLS.cs
- TimelineGroup.cs
- WebBrowserNavigatedEventHandler.cs
- ClientTarget.cs
- SystemWebSectionGroup.cs
- DefaultTextStoreTextComposition.cs
- SystemFonts.cs
- AnnotationService.cs
- GridViewAutomationPeer.cs
- SpeechRecognitionEngine.cs
- HandleExceptionArgs.cs
- MenuItemBindingCollection.cs
- ConfigXmlCDataSection.cs
- CatalogZone.cs
- BuilderPropertyEntry.cs
- SqlReferenceCollection.cs
- ThicknessAnimationUsingKeyFrames.cs
- UpdateRecord.cs
- InvokeMethod.cs
- BinaryMethodMessage.cs
- WebPartsPersonalization.cs
- FileDialogCustomPlacesCollection.cs
- CellCreator.cs
- PropertyIDSet.cs
- RuntimeConfigLKG.cs
- BitmapSizeOptions.cs
- SRDisplayNameAttribute.cs
- TransportElement.cs
- TileBrush.cs
- VectorAnimation.cs
- documentsequencetextview.cs
- QueryOpeningEnumerator.cs
- ValueType.cs
- InstalledFontCollection.cs
- DeviceContext.cs
- HtmlUtf8RawTextWriter.cs
- CatalogZone.cs
- Schema.cs
- RepeaterCommandEventArgs.cs
- DbBuffer.cs
- __Error.cs
- CalloutQueueItem.cs
- AlternationConverter.cs
- SqlClientFactory.cs
- TextTrailingCharacterEllipsis.cs
- ReadOnlyPropertyMetadata.cs
- CodeAttributeDeclarationCollection.cs