Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- CheckedListBox.cs
- SHA512Managed.cs
- SqlNotificationRequest.cs
- LookupNode.cs
- SqlServer2KCompatibilityCheck.cs
- ApplicationFileCodeDomTreeGenerator.cs
- TreePrinter.cs
- CommonDialog.cs
- ListBox.cs
- RenamedEventArgs.cs
- WebEvents.cs
- ReflectTypeDescriptionProvider.cs
- FileReservationCollection.cs
- HtmlMeta.cs
- DataSetViewSchema.cs
- HttpTransportBindingElement.cs
- AuthenticatingEventArgs.cs
- InternalConfigHost.cs
- SqlNodeTypeOperators.cs
- DLinqDataModelProvider.cs
- NetNamedPipeSecurityElement.cs
- UITypeEditor.cs
- NonVisualControlAttribute.cs
- CountAggregationOperator.cs
- EntityViewGenerationAttribute.cs
- WebPartManagerInternals.cs
- FlowDocumentView.cs
- GacUtil.cs
- SQLInt64.cs
- _OSSOCK.cs
- IndentedTextWriter.cs
- ManipulationStartingEventArgs.cs
- ChineseLunisolarCalendar.cs
- FillBehavior.cs
- TreeBuilder.cs
- EnumBuilder.cs
- RuleRef.cs
- Image.cs
- InternalConfigSettingsFactory.cs
- CommonGetThemePartSize.cs
- TableCell.cs
- HtmlCalendarAdapter.cs
- Mouse.cs
- WebControlAdapter.cs
- ParameterElementCollection.cs
- SpecialNameAttribute.cs
- BuildDependencySet.cs
- IsolatedStorageFile.cs
- Buffer.cs
- _ContextAwareResult.cs
- CommandDevice.cs
- StringSource.cs
- Speller.cs
- DataControlField.cs
- HandlerFactoryWrapper.cs
- URIFormatException.cs
- recordstatescratchpad.cs
- RegisteredDisposeScript.cs
- SqlConnectionHelper.cs
- TypeInfo.cs
- EditingMode.cs
- WindowsComboBox.cs
- NotifyCollectionChangedEventArgs.cs
- ImageList.cs
- SQLUtility.cs
- XXXOnTypeBuilderInstantiation.cs
- UseManagedPresentationBindingElement.cs
- SmtpMail.cs
- ParallelLoopState.cs
- BoolLiteral.cs
- MemberBinding.cs
- CreateUserErrorEventArgs.cs
- DataGridViewColumn.cs
- XmlSchemaNotation.cs
- LayoutEvent.cs
- PathNode.cs
- DataGridViewAdvancedBorderStyle.cs
- SequentialUshortCollection.cs
- SortedSetDebugView.cs
- NotifyInputEventArgs.cs
- WebPartConnectionsEventArgs.cs
- IteratorFilter.cs
- CodeStatementCollection.cs
- SpecularMaterial.cs
- TerminatorSinks.cs
- NotImplementedException.cs
- ReadOnlyTernaryTree.cs
- HostAdapter.cs
- XmlEncoding.cs
- _CacheStreams.cs
- TagMapCollection.cs
- DataGridViewCellCancelEventArgs.cs
- GreaterThan.cs
- ScrollViewer.cs
- BooleanToVisibilityConverter.cs
- MemberDomainMap.cs
- DbConnectionPool.cs
- MethodAccessException.cs
- DoWhile.cs
- OutputCacheSettings.cs