Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ReadOnlyTernaryTree.cs
- CriticalExceptions.cs
- SqlDependencyListener.cs
- HyperlinkAutomationPeer.cs
- XamlToRtfParser.cs
- FileIOPermission.cs
- FieldNameLookup.cs
- coordinatorscratchpad.cs
- WebPartVerb.cs
- ColumnWidthChangingEvent.cs
- DbDataAdapter.cs
- Transform.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- Size3DValueSerializer.cs
- JapaneseLunisolarCalendar.cs
- CryptoStream.cs
- Perspective.cs
- ContextMenuStripActionList.cs
- DataRow.cs
- PreservationFileWriter.cs
- SelectionListDesigner.cs
- PersistenceMetadataNamespace.cs
- SiteMap.cs
- TaskHelper.cs
- NativeMethods.cs
- XmlSchemaChoice.cs
- NamedPipeTransportSecurityElement.cs
- CachedPathData.cs
- ConfigurationLockCollection.cs
- pingexception.cs
- CommentAction.cs
- x509utils.cs
- LogAppendAsyncResult.cs
- OrthographicCamera.cs
- LocalValueEnumerator.cs
- AutomationIdentifierGuids.cs
- ToolboxBitmapAttribute.cs
- TdsParserSafeHandles.cs
- DynamicILGenerator.cs
- PKCS1MaskGenerationMethod.cs
- Roles.cs
- TreeView.cs
- ImageListImageEditor.cs
- HttpHeaderCollection.cs
- ServiceActivationException.cs
- DataViewManager.cs
- Journal.cs
- xml.cs
- XmlCustomFormatter.cs
- LambdaCompiler.Binary.cs
- SmtpFailedRecipientsException.cs
- AQNBuilder.cs
- DbMetaDataCollectionNames.cs
- SelectiveScrollingGrid.cs
- SoapEnumAttribute.cs
- ILGenerator.cs
- PropertyChangedEventManager.cs
- formatter.cs
- TableLayoutPanelResizeGlyph.cs
- RightsManagementEncryptionTransform.cs
- XsdDataContractImporter.cs
- TcpChannelListener.cs
- DefaultParameterValueAttribute.cs
- FileAuthorizationModule.cs
- ConnectionManagementSection.cs
- DependencyObjectPropertyDescriptor.cs
- CodeSnippetExpression.cs
- Span.cs
- HttpWriter.cs
- SqlParameter.cs
- CreateUserWizardStep.cs
- ColumnResizeAdorner.cs
- Material.cs
- Util.cs
- WpfGeneratedKnownTypes.cs
- SafeNativeMethods.cs
- ValidatorCollection.cs
- HtmlFormParameterReader.cs
- LogicalExpr.cs
- CapabilitiesRule.cs
- PathSegment.cs
- SqlUtil.cs
- DropDownButton.cs
- TextBox.cs
- PhonemeEventArgs.cs
- CodeStatement.cs
- Win32MouseDevice.cs
- DecoderNLS.cs
- DictionaryManager.cs
- GiveFeedbackEventArgs.cs
- CurrencyWrapper.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- MarkedHighlightComponent.cs
- TextCollapsingProperties.cs
- AutomationPatternInfo.cs
- ToolStrip.cs
- CodePageEncoding.cs
- XmlToDatasetMap.cs
- IOThreadTimer.cs
- Compiler.cs