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 / WebParts / WebBrowsableAttribute.cs / 1 / WebBrowsableAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; using System.ComponentModel; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Property)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class WebBrowsableAttribute : Attribute { ////// public static readonly WebBrowsableAttribute Yes = new WebBrowsableAttribute(true); ////// public static readonly WebBrowsableAttribute No = new WebBrowsableAttribute(false); ////// public static readonly WebBrowsableAttribute Default = No; private bool _browsable; ////// public WebBrowsableAttribute() : this(true) { } ////// public WebBrowsableAttribute(bool browsable) { _browsable = browsable; } ////// public bool Browsable { get { return _browsable; } } ///public override bool Equals(object obj) { if (obj == this) { return true; } WebBrowsableAttribute other = obj as WebBrowsableAttribute; return (other != null) && (other.Browsable == Browsable); } /// public override int GetHashCode() { return _browsable.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.WebControls.WebParts { using System; using System.ComponentModel; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Property)] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] public sealed class WebBrowsableAttribute : Attribute { ////// public static readonly WebBrowsableAttribute Yes = new WebBrowsableAttribute(true); ////// public static readonly WebBrowsableAttribute No = new WebBrowsableAttribute(false); ////// public static readonly WebBrowsableAttribute Default = No; private bool _browsable; ////// public WebBrowsableAttribute() : this(true) { } ////// public WebBrowsableAttribute(bool browsable) { _browsable = browsable; } ////// public bool Browsable { get { return _browsable; } } ///public override bool Equals(object obj) { if (obj == this) { return true; } WebBrowsableAttribute other = obj as WebBrowsableAttribute; return (other != null) && (other.Browsable == Browsable); } /// public override int GetHashCode() { return _browsable.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
- EventlogProvider.cs
- EntityDataSourceSelectingEventArgs.cs
- XmlWrappingWriter.cs
- SourceChangedEventArgs.cs
- RegexCaptureCollection.cs
- HMACSHA1.cs
- LiteralControl.cs
- RegistrationServices.cs
- DataGridViewDataErrorEventArgs.cs
- HWStack.cs
- DetailsViewRowCollection.cs
- XamlReaderHelper.cs
- TabletCollection.cs
- DocumentSequenceHighlightLayer.cs
- DataRowCollection.cs
- SystemFonts.cs
- HierarchicalDataBoundControlAdapter.cs
- GcHandle.cs
- CacheManager.cs
- HideDisabledControlAdapter.cs
- QuotedPrintableStream.cs
- AttachedAnnotationChangedEventArgs.cs
- SqlDataSourceView.cs
- WebControlAdapter.cs
- SplashScreen.cs
- MediaContextNotificationWindow.cs
- BamlLocalizer.cs
- StylusButtonCollection.cs
- COM2Enum.cs
- PageCodeDomTreeGenerator.cs
- SerializationSectionGroup.cs
- CurrentTimeZone.cs
- DataTemplate.cs
- DbConnectionPoolCounters.cs
- XmlDataLoader.cs
- precedingsibling.cs
- InputDevice.cs
- XamlPathDataSerializer.cs
- NetStream.cs
- EventLogPermissionAttribute.cs
- TextCollapsingProperties.cs
- RegistryExceptionHelper.cs
- BindingMAnagerBase.cs
- HttpContextServiceHost.cs
- ReadOnlyCollection.cs
- QuaternionAnimationBase.cs
- SqlBuilder.cs
- Reference.cs
- ClassHandlersStore.cs
- Parser.cs
- ExpandedProjectionNode.cs
- ExpandCollapseProviderWrapper.cs
- ListBase.cs
- ScrollChangedEventArgs.cs
- RSAPKCS1SignatureFormatter.cs
- BadImageFormatException.cs
- ThreadStateException.cs
- IdentifierCreationService.cs
- StrokeNodeOperations2.cs
- ETagAttribute.cs
- ObjectStorage.cs
- DesignerTextWriter.cs
- XMLSchema.cs
- CodeTypeDeclaration.cs
- WebPartConnectionsCloseVerb.cs
- WeakReference.cs
- DocumentViewerBase.cs
- SafeCryptoHandles.cs
- CollectionConverter.cs
- RegexGroup.cs
- TypedTableGenerator.cs
- ResXFileRef.cs
- Link.cs
- AllMembershipCondition.cs
- PictureBox.cs
- SocketManager.cs
- IChannel.cs
- CompositeFontParser.cs
- EventProviderWriter.cs
- PageParser.cs
- EntityUtil.cs
- XPathNodeIterator.cs
- EntityContainerRelationshipSet.cs
- SEHException.cs
- FigureParagraph.cs
- SerializationInfoEnumerator.cs
- Pkcs9Attribute.cs
- SID.cs
- EtwTrackingParticipant.cs
- ClassImporter.cs
- XmlUTF8TextReader.cs
- __Error.cs
- ContentValidator.cs
- UnitySerializationHolder.cs
- HelloOperationAsyncResult.cs
- PopupControlService.cs
- OledbConnectionStringbuilder.cs
- AnimationClockResource.cs
- entitydatasourceentitysetnameconverter.cs
- CompareValidator.cs