Code:
/ 4.0 / 4.0 / 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.
//------------------------------------------------------------------------------
//
// 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
- ProgressBarAutomationPeer.cs
- Renderer.cs
- XmlQueryContext.cs
- CompiledQueryCacheEntry.cs
- ClrPerspective.cs
- IMembershipProvider.cs
- StateItem.cs
- DesignTimeVisibleAttribute.cs
- UpdateManifestForBrowserApplication.cs
- DataColumn.cs
- AddInProcess.cs
- GPStream.cs
- TabItem.cs
- ValidationUtility.cs
- StringUtil.cs
- QueryStringParameter.cs
- DataGridViewImageCell.cs
- RetrieveVirtualItemEventArgs.cs
- TextOutput.cs
- EditorPartCollection.cs
- SupportingTokenParameters.cs
- HtmlInputButton.cs
- DataSourceXmlTextReader.cs
- PrintPreviewControl.cs
- HelpProvider.cs
- ToolStripOverflowButton.cs
- MonthChangedEventArgs.cs
- ISFTagAndGuidCache.cs
- BaseAppDomainProtocolHandler.cs
- XmlLangPropertyAttribute.cs
- WindowsToolbar.cs
- LogicalExpr.cs
- IIS7WorkerRequest.cs
- ImageCodecInfo.cs
- KeyTimeConverter.cs
- Marshal.cs
- DataKeyCollection.cs
- RemoteWebConfigurationHost.cs
- Symbol.cs
- SHA512Cng.cs
- Parameter.cs
- OutputCacheSettingsSection.cs
- ProcessManager.cs
- ScriptHandlerFactory.cs
- AuthenticationModuleElement.cs
- WasEndpointConfigContainer.cs
- ToolStripPanelRenderEventArgs.cs
- Options.cs
- ItemAutomationPeer.cs
- BoolExpr.cs
- SoapProtocolImporter.cs
- DataServiceQueryProvider.cs
- XmlIterators.cs
- DbConnectionPoolGroupProviderInfo.cs
- SystemException.cs
- WpfSharedBamlSchemaContext.cs
- SafeEventHandle.cs
- ApplicationActivator.cs
- ColorContext.cs
- OuterGlowBitmapEffect.cs
- Parsers.cs
- BasePattern.cs
- SizeAnimationBase.cs
- ChildDocumentBlock.cs
- PropertyEntry.cs
- DbMetaDataColumnNames.cs
- HttpModuleAction.cs
- SHA256.cs
- UTF7Encoding.cs
- HatchBrush.cs
- FrameworkReadOnlyPropertyMetadata.cs
- XmlQueryType.cs
- SrgsGrammar.cs
- InputBindingCollection.cs
- Workspace.cs
- LogFlushAsyncResult.cs
- MsmqIntegrationBindingElement.cs
- CodeSnippetTypeMember.cs
- RotationValidation.cs
- ArgumentException.cs
- CmsInterop.cs
- SafeRegistryKey.cs
- InvokeProviderWrapper.cs
- SQLInt64Storage.cs
- KnownTypeAttribute.cs
- _DisconnectOverlappedAsyncResult.cs
- WebPartActionVerb.cs
- MouseGestureConverter.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- GridViewRow.cs
- TCPListener.cs
- GC.cs
- DataConnectionHelper.cs
- FixedSOMPageElement.cs
- ExceptionRoutedEventArgs.cs
- ActiveDocumentEvent.cs
- SmiEventSink_Default.cs
- ConfigXmlSignificantWhitespace.cs
- ToolStripContentPanelRenderEventArgs.cs
- DataControlImageButton.cs