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
- BindToObject.cs
- AsymmetricSignatureDeformatter.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- Utilities.cs
- MeshGeometry3D.cs
- CodeCommentStatementCollection.cs
- XmlSchemaAttributeGroupRef.cs
- WebPartConnectionCollection.cs
- SHA384.cs
- IdnElement.cs
- DtrList.cs
- Parser.cs
- XmlSchemaSimpleTypeUnion.cs
- PersonalizationState.cs
- RsaKeyIdentifierClause.cs
- CodeTypeOfExpression.cs
- RequestNavigateEventArgs.cs
- DbConnectionStringCommon.cs
- ColorEditor.cs
- CriticalHandle.cs
- ImageButton.cs
- FilteredSchemaElementLookUpTable.cs
- PictureBoxDesigner.cs
- SymmetricKeyWrap.cs
- NameNode.cs
- HTMLTextWriter.cs
- RichTextBoxContextMenu.cs
- DllNotFoundException.cs
- SettingsBase.cs
- CustomAttributeFormatException.cs
- AvTrace.cs
- PingOptions.cs
- CalloutQueueItem.cs
- InvokeHandlers.cs
- ErrorCodes.cs
- TextServicesCompartmentContext.cs
- SpAudioStreamWrapper.cs
- DbConnectionPoolIdentity.cs
- StartFileNameEditor.cs
- RelationalExpressions.cs
- DbExpressionBuilder.cs
- PointAnimation.cs
- DeleteBookmarkScope.cs
- StrongNameUtility.cs
- CodeSnippetCompileUnit.cs
- PropertyRecord.cs
- ListDictionaryInternal.cs
- AbandonedMutexException.cs
- BehaviorEditorPart.cs
- CodeArgumentReferenceExpression.cs
- BufferModesCollection.cs
- LassoSelectionBehavior.cs
- FileDataSourceCache.cs
- OperationValidationEventArgs.cs
- DataServiceRequestOfT.cs
- PagerSettings.cs
- AvTraceFormat.cs
- DocumentAutomationPeer.cs
- RegisteredScript.cs
- DependencyObjectPropertyDescriptor.cs
- FormattedTextSymbols.cs
- ActivityMarkupSerializationProvider.cs
- IdentityModelDictionary.cs
- NominalTypeEliminator.cs
- SendKeys.cs
- PackagePart.cs
- XmlSchemaCollection.cs
- RegexGroupCollection.cs
- HwndTarget.cs
- WebServiceClientProxyGenerator.cs
- ListViewDeletedEventArgs.cs
- TreeViewCancelEvent.cs
- WebResourceAttribute.cs
- ModelPerspective.cs
- NullReferenceException.cs
- DocumentReference.cs
- Decoder.cs
- RelationshipEndCollection.cs
- BrushMappingModeValidation.cs
- CriticalExceptions.cs
- LayoutUtils.cs
- LayoutEvent.cs
- XXXOnTypeBuilderInstantiation.cs
- ValidationErrorCollection.cs
- SortedSet.cs
- MetadataWorkspace.cs
- EastAsianLunisolarCalendar.cs
- CollectionsUtil.cs
- DataSourceCache.cs
- CalendarAutomationPeer.cs
- XmlSchemaAll.cs
- DataTableNewRowEvent.cs
- LinqExpressionNormalizer.cs
- IteratorFilter.cs
- FormViewUpdateEventArgs.cs
- InstanceNormalEvent.cs
- TextElementEditingBehaviorAttribute.cs
- SizeFConverter.cs
- StandardBindingCollectionElement.cs
- DbCommandDefinition.cs