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
- SystemTcpConnection.cs
- DataGridViewTopLeftHeaderCell.cs
- Transform.cs
- COM2TypeInfoProcessor.cs
- MenuItemStyleCollection.cs
- StateFinalizationActivity.cs
- RadioButtonFlatAdapter.cs
- XpsSerializerFactory.cs
- EmptyQuery.cs
- CompoundFileIOPermission.cs
- OpenTypeCommon.cs
- OleDbTransaction.cs
- BitmapSourceSafeMILHandle.cs
- ScriptControlManager.cs
- UpDownBase.cs
- X509ChainPolicy.cs
- DateTimePickerDesigner.cs
- ProviderSettings.cs
- ActionFrame.cs
- OleDbRowUpdatingEvent.cs
- SettingsPropertyIsReadOnlyException.cs
- EndOfStreamException.cs
- UdpUtility.cs
- ConfigurationElementCollection.cs
- Repeater.cs
- UITypeEditor.cs
- FormView.cs
- TextDecorations.cs
- RichTextBoxAutomationPeer.cs
- Rule.cs
- SystemWebCachingSectionGroup.cs
- TypeKeyValue.cs
- SQLChars.cs
- NativeWindow.cs
- EntityTypeBase.cs
- QueryOperationResponseOfT.cs
- CreateUserWizardStep.cs
- XmlHierarchicalEnumerable.cs
- DictionaryBase.cs
- XMLUtil.cs
- ListViewItemMouseHoverEvent.cs
- StateItem.cs
- AppSettingsReader.cs
- CriticalExceptions.cs
- FixedDocumentSequencePaginator.cs
- MediaElementAutomationPeer.cs
- ApplicationSettingsBase.cs
- KeyboardDevice.cs
- LinqTreeNodeEvaluator.cs
- Help.cs
- SecureEnvironment.cs
- SystemIPGlobalStatistics.cs
- HtmlEmptyTagControlBuilder.cs
- ChtmlCalendarAdapter.cs
- DataGridRow.cs
- Pen.cs
- CodeDomExtensionMethods.cs
- HtmlTextArea.cs
- securitycriticaldata.cs
- ResourceLoader.cs
- DirectionalLight.cs
- SessionStateContainer.cs
- IntegerValidatorAttribute.cs
- Line.cs
- ConfigurationValidatorAttribute.cs
- AddIn.cs
- SingleSelectRootGridEntry.cs
- NotImplementedException.cs
- Panel.cs
- SecurityTokenContainer.cs
- Input.cs
- SettingsPropertyCollection.cs
- WorkflowQueue.cs
- ErrorTolerantObjectWriter.cs
- SafeRightsManagementQueryHandle.cs
- AutomationElementCollection.cs
- RootProjectionNode.cs
- RangeValidator.cs
- Logging.cs
- AssertSection.cs
- RequestDescription.cs
- RoutingExtensionElement.cs
- TableCellAutomationPeer.cs
- LoginName.cs
- AffineTransform3D.cs
- HtmlInputHidden.cs
- TypeGeneratedEventArgs.cs
- DefinitionBase.cs
- PrintEvent.cs
- CalendarBlackoutDatesCollection.cs
- PEFileEvidenceFactory.cs
- ExceptionWrapper.cs
- ApplicationDirectoryMembershipCondition.cs
- CqlParserHelpers.cs
- Win32Exception.cs
- ControlBuilderAttribute.cs
- NetworkAddressChange.cs
- Number.cs
- DBConcurrencyException.cs
- CompositionDesigner.cs