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
- SelectionChangedEventArgs.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- HwndPanningFeedback.cs
- AddInDeploymentState.cs
- ColorConverter.cs
- SqlDataReaderSmi.cs
- DataGridTemplateColumn.cs
- WebPartDisplayMode.cs
- TextParaClient.cs
- EventData.cs
- ReadWriteObjectLock.cs
- CacheMemory.cs
- StackBuilderSink.cs
- DateTimeFormatInfoScanner.cs
- InfoCardTraceRecord.cs
- SafeCertificateStore.cs
- DecimalFormatter.cs
- DataGridCommandEventArgs.cs
- KeyNotFoundException.cs
- DateRangeEvent.cs
- BamlTreeNode.cs
- Int32CollectionValueSerializer.cs
- XmlUnspecifiedAttribute.cs
- BindingExpression.cs
- BaseCodePageEncoding.cs
- SharedUtils.cs
- DataBindingCollectionEditor.cs
- TaskFileService.cs
- PageSetupDialog.cs
- Listbox.cs
- ResourceWriter.cs
- CheckBoxPopupAdapter.cs
- ContextStaticAttribute.cs
- TextEditorThreadLocalStore.cs
- OutputCacheProfile.cs
- TickBar.cs
- FileDialog.cs
- WebPartsSection.cs
- SiteMapDataSource.cs
- MemberHolder.cs
- WorkflowLayouts.cs
- Transform3DCollection.cs
- MSAAWinEventWrap.cs
- BufferedReceiveManager.cs
- FormsAuthentication.cs
- SettingsContext.cs
- DictionaryEntry.cs
- HatchBrush.cs
- SBCSCodePageEncoding.cs
- ScrollEvent.cs
- CustomAttributeBuilder.cs
- HttpProtocolImporter.cs
- ParserContext.cs
- UnsettableComboBox.cs
- FreeFormDragDropManager.cs
- AutomationAttributeInfo.cs
- GridViewRowEventArgs.cs
- XmlSchemaImporter.cs
- EncoderNLS.cs
- StreamingContext.cs
- TreeViewItemAutomationPeer.cs
- WorkflowServiceAttributes.cs
- ImageFormatConverter.cs
- ScrollEventArgs.cs
- ModelItemImpl.cs
- EncoderNLS.cs
- UserUseLicenseDictionaryLoader.cs
- ProxyHelper.cs
- FieldNameLookup.cs
- UInt64Storage.cs
- SQLMembershipProvider.cs
- SimpleHandlerFactory.cs
- DesignerDataSourceView.cs
- FrameworkElement.cs
- ISFClipboardData.cs
- DataPagerField.cs
- TextParagraphView.cs
- TextBox.cs
- EventManager.cs
- FixUp.cs
- Ppl.cs
- MetadataFile.cs
- XmlWellformedWriter.cs
- CodeMethodInvokeExpression.cs
- ProfileProvider.cs
- PartManifestEntry.cs
- DbResourceAllocator.cs
- WebPartTransformerAttribute.cs
- SqlCacheDependencyDatabaseCollection.cs
- ProfilePropertySettings.cs
- DateTimeStorage.cs
- WindowsButton.cs
- WebPartMinimizeVerb.cs
- SByte.cs
- KeyConstraint.cs
- EncryptedKeyHashIdentifierClause.cs
- ConfigXmlText.cs
- CharEnumerator.cs
- MatrixTransform.cs
- SharedPerformanceCounter.cs