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
- DisplayInformation.cs
- ExpressionBuilderCollection.cs
- ZipIOExtraFieldElement.cs
- OdbcInfoMessageEvent.cs
- StateMachine.cs
- Pkcs9Attribute.cs
- TypeConverter.cs
- NamespaceExpr.cs
- XhtmlConformanceSection.cs
- SchemaNotation.cs
- SimpleApplicationHost.cs
- StaticFileHandler.cs
- DesignerWidgets.cs
- CatalogZone.cs
- XmlNode.cs
- DataSvcMapFileSerializer.cs
- PropertyInfoSet.cs
- cookiecollection.cs
- SetterBase.cs
- ObjectDataSourceView.cs
- TypedDataSetSchemaImporterExtension.cs
- XmlValidatingReaderImpl.cs
- DataTableExtensions.cs
- LiteralControl.cs
- XmlAttributeAttribute.cs
- SoapObjectReader.cs
- GlobalizationSection.cs
- Message.cs
- StringDictionaryCodeDomSerializer.cs
- GenericPrincipal.cs
- CompensatableTransactionScopeActivity.cs
- KeyInterop.cs
- AccessedThroughPropertyAttribute.cs
- BlurBitmapEffect.cs
- TextStore.cs
- Debugger.cs
- ScriptResourceHandler.cs
- CollectionViewSource.cs
- ButtonFieldBase.cs
- XsltException.cs
- serverconfig.cs
- ScrollItemProviderWrapper.cs
- WebPartMenu.cs
- Interlocked.cs
- GridLength.cs
- FlatButtonAppearance.cs
- HandleExceptionArgs.cs
- CroppedBitmap.cs
- TextParagraphView.cs
- Privilege.cs
- XPathNode.cs
- Base64Encoder.cs
- RayHitTestParameters.cs
- XamlSerializerUtil.cs
- SingleObjectCollection.cs
- Formatter.cs
- MatrixUtil.cs
- HttpHandlerActionCollection.cs
- VerificationException.cs
- ParenExpr.cs
- ColumnTypeConverter.cs
- ResourceIDHelper.cs
- PageHandlerFactory.cs
- DictionaryBase.cs
- Msec.cs
- TextServicesDisplayAttribute.cs
- XmlKeywords.cs
- CachedPathData.cs
- RichTextBoxConstants.cs
- ProviderBase.cs
- Wildcard.cs
- QilName.cs
- MeasurementDCInfo.cs
- SoapExtensionTypeElementCollection.cs
- XmlNodeChangedEventManager.cs
- ClientApiGenerator.cs
- EntityProviderFactory.cs
- SoapExtension.cs
- ChangeInterceptorAttribute.cs
- LogLogRecordEnumerator.cs
- DataGridViewLinkCell.cs
- Debug.cs
- ReflectionPermission.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- EarlyBoundInfo.cs
- FilePrompt.cs
- PixelShader.cs
- TransactionContext.cs
- WasAdminWrapper.cs
- BinaryEditor.cs
- MenuItem.cs
- RelationshipManager.cs
- SiteMapNodeItemEventArgs.cs
- AutoGeneratedFieldProperties.cs
- ToolStripLocationCancelEventArgs.cs
- CallbackHandler.cs
- UIPermission.cs
- PaperSize.cs
- ClientRolePrincipal.cs
- RestHandlerFactory.cs