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
- BoolExpression.cs
- AppSettingsReader.cs
- RuntimeEnvironment.cs
- OrderedDictionaryStateHelper.cs
- PrivilegedConfigurationManager.cs
- sitestring.cs
- DesignerCatalogPartChrome.cs
- WhitespaceRule.cs
- IDispatchConstantAttribute.cs
- FixedHyperLink.cs
- CommandBinding.cs
- GenerateHelper.cs
- CanonicalFormWriter.cs
- Splitter.cs
- Pkcs7Recipient.cs
- NativeWindow.cs
- MapPathBasedVirtualPathProvider.cs
- LogicalExpr.cs
- PropertyChangingEventArgs.cs
- UnknownBitmapEncoder.cs
- CustomAssemblyResolver.cs
- ClonableStack.cs
- ProfileSection.cs
- Page.cs
- MessageLoggingElement.cs
- BinaryKeyIdentifierClause.cs
- ClientSection.cs
- DataObjectEventArgs.cs
- HostProtectionPermission.cs
- bidPrivateBase.cs
- TextSelectionHelper.cs
- AnimatedTypeHelpers.cs
- Missing.cs
- PropertyDescriptorCollection.cs
- ReliabilityContractAttribute.cs
- GridViewAutomationPeer.cs
- ObjectItemAttributeAssemblyLoader.cs
- LongTypeConverter.cs
- CodeMethodInvokeExpression.cs
- AuthenticateEventArgs.cs
- EntityDescriptor.cs
- TextServicesDisplayAttribute.cs
- ManipulationStartedEventArgs.cs
- GridViewRowEventArgs.cs
- xml.cs
- FileSystemEventArgs.cs
- StylusEventArgs.cs
- DataGridPagerStyle.cs
- TextEditorContextMenu.cs
- UIElementPropertyUndoUnit.cs
- SearchForVirtualItemEventArgs.cs
- TreeNodeCollectionEditor.cs
- ContentFileHelper.cs
- COAUTHINFO.cs
- PassportIdentity.cs
- AuthenticationException.cs
- DataGridItemCollection.cs
- CompilerHelpers.cs
- PipelineModuleStepContainer.cs
- PersonalizableTypeEntry.cs
- PageStatePersister.cs
- SystemColorTracker.cs
- PersonalizationEntry.cs
- ResponseStream.cs
- GPStream.cs
- GroupItem.cs
- UpdateDelegates.Generated.cs
- xmlsaver.cs
- FileSystemWatcher.cs
- SmiSettersStream.cs
- ProviderSettingsCollection.cs
- metadatamappinghashervisitor.cs
- TemplateInstanceAttribute.cs
- EventDescriptor.cs
- PropertyInformationCollection.cs
- Solver.cs
- EntitySqlQueryCacheKey.cs
- DbConnectionStringCommon.cs
- PermissionAttributes.cs
- DoubleKeyFrameCollection.cs
- MulticastDelegate.cs
- AppSecurityManager.cs
- StringSorter.cs
- DllNotFoundException.cs
- BasicBrowserDialog.cs
- DynamicPropertyHolder.cs
- MimeParameters.cs
- ConfigurationStrings.cs
- TypedLocationWrapper.cs
- DataSourceProvider.cs
- ProvidersHelper.cs
- XmlNodeWriter.cs
- CodeCastExpression.cs
- UserPersonalizationStateInfo.cs
- SimpleHandlerBuildProvider.cs
- CertificateManager.cs
- WeakKeyDictionary.cs
- ResourceSetExpression.cs
- BamlLocalizabilityResolver.cs
- UrlAuthFailureHandler.cs