Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ // // 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FocusChangedEventArgs.cs
- NumericUpDown.cs
- ProcessHostMapPath.cs
- OpenTypeLayout.cs
- TextTreeInsertUndoUnit.cs
- AsyncOperationManager.cs
- ColumnMap.cs
- DropShadowBitmapEffect.cs
- SafeRegistryHandle.cs
- OpenTypeLayout.cs
- WebPartVerbsEventArgs.cs
- ConnectionConsumerAttribute.cs
- XamlTypeMapper.cs
- XmlDataSourceView.cs
- EditorPartDesigner.cs
- RC2CryptoServiceProvider.cs
- SqlConnectionString.cs
- Renderer.cs
- TreeChangeInfo.cs
- FollowerQueueCreator.cs
- TextContainerHelper.cs
- AddInDeploymentState.cs
- PieceDirectory.cs
- ResourceProviderFactory.cs
- PropertyChangedEventManager.cs
- ClickablePoint.cs
- BuildProviderCollection.cs
- TextUtf8RawTextWriter.cs
- DataSourceCacheDurationConverter.cs
- XmlBinaryWriterSession.cs
- SamlEvidence.cs
- Vector3DConverter.cs
- SmtpMail.cs
- DateTimeStorage.cs
- Convert.cs
- ILGenerator.cs
- WindowsScroll.cs
- UnsafeNativeMethodsTablet.cs
- FormViewUpdateEventArgs.cs
- ConfigurationException.cs
- Timeline.cs
- EditBehavior.cs
- RequestCachePolicyConverter.cs
- QueryableFilterUserControl.cs
- parserscommon.cs
- TextElementAutomationPeer.cs
- TcpChannelListener.cs
- ReceiveSecurityHeaderElementManager.cs
- CategoryGridEntry.cs
- ResumeStoryboard.cs
- Int32Collection.cs
- ContainerUtilities.cs
- SyndicationLink.cs
- MatrixIndependentAnimationStorage.cs
- StatusBarAutomationPeer.cs
- OracleDataAdapter.cs
- EntityAdapter.cs
- WebInvokeAttribute.cs
- DataGridColumnHeadersPresenter.cs
- FormView.cs
- DBCSCodePageEncoding.cs
- PropertyInformation.cs
- CompositeScriptReferenceEventArgs.cs
- StyleSelector.cs
- FrameAutomationPeer.cs
- RijndaelManaged.cs
- DeferredReference.cs
- CodeDomSerializerException.cs
- ChildrenQuery.cs
- XmlAttribute.cs
- UserInitiatedNavigationPermission.cs
- CharEnumerator.cs
- PrintPreviewGraphics.cs
- PropertyDescriptors.cs
- ContainsRowNumberChecker.cs
- RangeValidator.cs
- TraceSection.cs
- ServiceTimeoutsBehavior.cs
- SQLDateTimeStorage.cs
- UpdateRecord.cs
- AsyncDataRequest.cs
- GroupBoxRenderer.cs
- PerfProviderCollection.cs
- XmlKeywords.cs
- WindowsImpersonationContext.cs
- ExeContext.cs
- TextModifier.cs
- SchemaSetCompiler.cs
- CorrelationResolver.cs
- SourceSwitch.cs
- EqualityComparer.cs
- AutomationAttributeInfo.cs
- OleDbConnectionInternal.cs
- IsolationInterop.cs
- SecurityImpersonationBehavior.cs
- Wizard.cs
- CodeStatement.cs
- RectKeyFrameCollection.cs
- AutoGeneratedFieldProperties.cs
- DtrList.cs