Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / UI / NonVisualControlAttribute.cs / 1 / NonVisualControlAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.Collections; using System.ComponentModel; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AttributeUsage(AttributeTargets.Class)] public sealed class NonVisualControlAttribute : Attribute { ////// /// public static readonly NonVisualControlAttribute NonVisual = new NonVisualControlAttribute(true); ////// /// /// public static readonly NonVisualControlAttribute Visual = new NonVisualControlAttribute(false); ////// /// /// public static readonly NonVisualControlAttribute Default = Visual; private bool _nonVisual; ////// /// public NonVisualControlAttribute() : this(true) { } ////// public NonVisualControlAttribute(bool nonVisual) { _nonVisual = nonVisual; } ////// public bool IsNonVisual { get { return _nonVisual; } } ///Indicates if the control is non-visual. ///public override bool Equals(object obj) { if (obj == this) { return true; } NonVisualControlAttribute other = obj as NonVisualControlAttribute; return (other != null) && (other.IsNonVisual == IsNonVisual); } /// public override int GetHashCode() { return _nonVisual.GetHashCode(); } /// public override bool IsDefaultAttribute() { return this.Equals(Default); } } } // 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.Collections; using System.ComponentModel; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AttributeUsage(AttributeTargets.Class)] public sealed class NonVisualControlAttribute : Attribute { ////// /// public static readonly NonVisualControlAttribute NonVisual = new NonVisualControlAttribute(true); ////// /// /// public static readonly NonVisualControlAttribute Visual = new NonVisualControlAttribute(false); ////// /// /// public static readonly NonVisualControlAttribute Default = Visual; private bool _nonVisual; ////// /// public NonVisualControlAttribute() : this(true) { } ////// public NonVisualControlAttribute(bool nonVisual) { _nonVisual = nonVisual; } ////// public bool IsNonVisual { get { return _nonVisual; } } ///Indicates if the control is non-visual. ///public override bool Equals(object obj) { if (obj == this) { return true; } NonVisualControlAttribute other = obj as NonVisualControlAttribute; return (other != null) && (other.IsNonVisual == IsNonVisual); } /// public override int GetHashCode() { return _nonVisual.GetHashCode(); } /// public override bool IsDefaultAttribute() { return this.Equals(Default); } } } // 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
- Substitution.cs
- ThreadAbortException.cs
- EntityDataSourceConfigureObjectContext.cs
- MdiWindowListItemConverter.cs
- TableCell.cs
- XmlDataSourceDesigner.cs
- TextBox.cs
- MessageRpc.cs
- ComponentEditorPage.cs
- EntityDataSourceContextDisposingEventArgs.cs
- DefaultHttpHandler.cs
- SByte.cs
- FormattedText.cs
- HttpPostServerProtocol.cs
- DrawingContextDrawingContextWalker.cs
- StrictAndMessageFilter.cs
- GlobalEventManager.cs
- ButtonBaseAdapter.cs
- Clause.cs
- EventManager.cs
- X509CertificateCollection.cs
- Button.cs
- PKCS1MaskGenerationMethod.cs
- FileSystemEventArgs.cs
- ToolStripButton.cs
- JobStaple.cs
- DataMemberListEditor.cs
- DrawListViewColumnHeaderEventArgs.cs
- CompensationDesigner.cs
- Dump.cs
- GenericUriParser.cs
- GridViewRowCollection.cs
- ISCIIEncoding.cs
- SystemColors.cs
- __ConsoleStream.cs
- CmsInterop.cs
- SharedStream.cs
- InvalidPrinterException.cs
- WebBrowser.cs
- BoundConstants.cs
- SapiGrammar.cs
- ButtonBase.cs
- XmlElementList.cs
- SQLMoney.cs
- HtmlTextViewAdapter.cs
- BidOverLoads.cs
- HttpChannelHelper.cs
- SqlUserDefinedTypeAttribute.cs
- FixedDSBuilder.cs
- StringAnimationBase.cs
- UnionExpr.cs
- Context.cs
- RegexReplacement.cs
- WebBrowserNavigatedEventHandler.cs
- PluggableProtocol.cs
- XmlSchemaInferenceException.cs
- ApplicationContext.cs
- _AcceptOverlappedAsyncResult.cs
- TextBoxDesigner.cs
- DbReferenceCollection.cs
- NegationPusher.cs
- WebPartConnectionsConnectVerb.cs
- _ConnectStream.cs
- WebPartPersonalization.cs
- ErrorFormatter.cs
- ToolboxDataAttribute.cs
- ShaderEffect.cs
- FixedTextPointer.cs
- AsymmetricAlgorithm.cs
- ServiceHandle.cs
- PolicyImporterElementCollection.cs
- ListSortDescription.cs
- TemplateControl.cs
- TextServicesProperty.cs
- UserPreferenceChangedEventArgs.cs
- DoubleLink.cs
- ScaleTransform.cs
- SortAction.cs
- MenuItemAutomationPeer.cs
- DelegateSerializationHolder.cs
- DataGridViewColumnEventArgs.cs
- DynamicQueryableWrapper.cs
- LinkLabel.cs
- GraphicsContext.cs
- DataComponentGenerator.cs
- Rect.cs
- ServiceBehaviorAttribute.cs
- Simplifier.cs
- KnownBoxes.cs
- WindowsRebar.cs
- ScriptControlManager.cs
- InputLanguageManager.cs
- PhoneCall.cs
- CategoryAttribute.cs
- ControlBuilder.cs
- FixedPosition.cs
- ImplicitInputBrush.cs
- IUnknownConstantAttribute.cs
- FloaterBaseParagraph.cs
- ProviderBase.cs