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
- ComponentEditorForm.cs
- Size3DValueSerializer.cs
- CatalogPartDesigner.cs
- DbProviderFactoriesConfigurationHandler.cs
- CultureTable.cs
- PropertyKey.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- EventRouteFactory.cs
- SizeLimitedCache.cs
- Camera.cs
- DynamicILGenerator.cs
- SequentialWorkflowHeaderFooter.cs
- Sql8ExpressionRewriter.cs
- DayRenderEvent.cs
- ProfessionalColorTable.cs
- StateChangeEvent.cs
- ITreeGenerator.cs
- LineServices.cs
- CertificateManager.cs
- BamlBinaryReader.cs
- XmlILTrace.cs
- RowUpdatingEventArgs.cs
- StringCollectionEditor.cs
- PathSegment.cs
- ReadWriteControlDesigner.cs
- ExecutedRoutedEventArgs.cs
- TextStore.cs
- FunctionDescription.cs
- ContextDataSourceView.cs
- RenderData.cs
- EndPoint.cs
- SettingsPropertyCollection.cs
- ModelTreeEnumerator.cs
- DelegatingTypeDescriptionProvider.cs
- _CacheStreams.cs
- AttributeData.cs
- CodeSubDirectory.cs
- RangeValuePatternIdentifiers.cs
- ClientSideProviderDescription.cs
- DefaultCommandExtensionCallback.cs
- ObjectTag.cs
- CorePropertiesFilter.cs
- ValidationPropertyAttribute.cs
- XmlException.cs
- PageHandlerFactory.cs
- ListControlStringCollectionEditor.cs
- XmlArrayItemAttribute.cs
- BigInt.cs
- DetailsViewDeleteEventArgs.cs
- ToolStripSystemRenderer.cs
- SqlUdtInfo.cs
- SqlClientPermission.cs
- LinqDataSourceUpdateEventArgs.cs
- ManagementQuery.cs
- EventLogPermissionAttribute.cs
- StructuredProperty.cs
- CommonObjectSecurity.cs
- ICspAsymmetricAlgorithm.cs
- TextEndOfParagraph.cs
- GlobalAclOperationRequirement.cs
- AdPostCacheSubstitution.cs
- StringDictionaryEditor.cs
- MenuCommand.cs
- ValueSerializer.cs
- SpecialNameAttribute.cs
- DataGridViewRowHeaderCell.cs
- NativeCppClassAttribute.cs
- HttpHandlerActionCollection.cs
- ComboBox.cs
- BinaryWriter.cs
- WorkItem.cs
- KeyValueInternalCollection.cs
- OdbcConnectionFactory.cs
- TableCellCollection.cs
- XmlJsonReader.cs
- CompositeCollection.cs
- EdmFunctions.cs
- SqlResolver.cs
- RequestSecurityTokenResponse.cs
- TagElement.cs
- List.cs
- SqlComparer.cs
- Renderer.cs
- DynamicResourceExtensionConverter.cs
- Graphics.cs
- MsmqChannelListenerBase.cs
- ScriptingWebServicesSectionGroup.cs
- DesignerDataSchemaClass.cs
- UserControl.cs
- RepeaterItemCollection.cs
- JoinElimination.cs
- ConsumerConnectionPointCollection.cs
- Reference.cs
- UIElementAutomationPeer.cs
- LogRecordSequence.cs
- ImmutableClientRuntime.cs
- SharedPerformanceCounter.cs
- DisplayInformation.cs
- Storyboard.cs
- QueryOutputWriter.cs