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
- Geometry3D.cs
- LinqDataSourceHelper.cs
- FileLevelControlBuilderAttribute.cs
- InstanceHandleReference.cs
- XamlFigureLengthSerializer.cs
- control.ime.cs
- SqlDataSourceFilteringEventArgs.cs
- BaseUriHelper.cs
- EmbeddedMailObject.cs
- IdentitySection.cs
- DriveNotFoundException.cs
- PeerEndPoint.cs
- HotSpotCollection.cs
- RuleRefElement.cs
- WhitespaceRuleLookup.cs
- ExtensionWindowHeader.cs
- columnmapkeybuilder.cs
- CriticalExceptions.cs
- WindowsSpinner.cs
- AnimationStorage.cs
- xamlnodes.cs
- DataSvcMapFileSerializer.cs
- WebServiceMethodData.cs
- OneWayBindingElementImporter.cs
- NameValueCollection.cs
- DesignerSerializationOptionsAttribute.cs
- KerberosReceiverSecurityToken.cs
- PagerSettings.cs
- WindowsFormsHostPropertyMap.cs
- HtmlPageAdapter.cs
- BezierSegment.cs
- DbConnectionFactory.cs
- MustUnderstandBehavior.cs
- Vector3DValueSerializer.cs
- DecimalKeyFrameCollection.cs
- CodeThrowExceptionStatement.cs
- DefaultDialogButtons.cs
- BoundField.cs
- MostlySingletonList.cs
- HeaderUtility.cs
- TextParentUndoUnit.cs
- WebReferencesBuildProvider.cs
- ProxyOperationRuntime.cs
- XamlRtfConverter.cs
- InvalidPrinterException.cs
- SecurityKeyType.cs
- ColumnCollection.cs
- FactoryMaker.cs
- ObjectDataSource.cs
- TypeInfo.cs
- ComponentCollection.cs
- versioninfo.cs
- ClientType.cs
- KeyConverter.cs
- PipeStream.cs
- ZipFileInfo.cs
- LinearKeyFrames.cs
- ThreadExceptionDialog.cs
- Process.cs
- PackageRelationship.cs
- ECDiffieHellmanCng.cs
- BaseValidator.cs
- WindowsNonControl.cs
- ClickablePoint.cs
- DocumentScope.cs
- SchemaAttDef.cs
- ResourceDictionary.cs
- TextUtf8RawTextWriter.cs
- DataGrid.cs
- WorkflowInstanceExtensionManager.cs
- EdgeModeValidation.cs
- MetaDataInfo.cs
- UInt16.cs
- NativeMethods.cs
- SoapSchemaMember.cs
- MappingMetadataHelper.cs
- MimeParameter.cs
- SmtpLoginAuthenticationModule.cs
- GACIdentityPermission.cs
- CompiledScopeCriteria.cs
- NotifyInputEventArgs.cs
- RemotingAttributes.cs
- MimeBasePart.cs
- ErrorItem.cs
- SqlParameterCollection.cs
- XmlSchemaSimpleContentExtension.cs
- XmlEncoding.cs
- TableColumn.cs
- GridViewColumnHeaderAutomationPeer.cs
- Control.cs
- InstanceBehavior.cs
- DataGridViewComboBoxEditingControl.cs
- DesignerActionListCollection.cs
- DisplayNameAttribute.cs
- control.ime.cs
- SoapTypeAttribute.cs
- SettingsPropertyIsReadOnlyException.cs
- XXXInfos.cs
- StronglyTypedResourceBuilder.cs
- ReferentialConstraintRoleElement.cs