Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / ComponentModel / RecommendedAsConfigurableAttribute.cs / 1 / RecommendedAsConfigurableAttribute.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.ComponentModel {
using System;
using System.Diagnostics;
using System.Security.Permissions;
///
/// Specifies that the property can be
/// used as an application setting.
///
[AttributeUsage(AttributeTargets.Property)]
[Obsolete("Use System.ComponentModel.SettingsBindableAttribute instead to work with the new settings model.")]
public class RecommendedAsConfigurableAttribute : Attribute {
private bool recommendedAsConfigurable = false;
///
///
/// Initializes a new instance of
/// the class.
///
///
public RecommendedAsConfigurableAttribute(bool recommendedAsConfigurable) {
this.recommendedAsConfigurable = recommendedAsConfigurable;
}
///
/// Gets a value indicating whether the property this
/// attribute is bound to can be used as an application setting.
///
public bool RecommendedAsConfigurable {
get {
return recommendedAsConfigurable;
}
}
///
///
/// Specifies that a property cannot be used as an application setting. This
/// field is read-only.
///
///
public static readonly RecommendedAsConfigurableAttribute No = new RecommendedAsConfigurableAttribute(false);
///
///
/// Specifies
/// that a property can be used as an application setting. This field is read-only.
///
///
public static readonly RecommendedAsConfigurableAttribute Yes = new RecommendedAsConfigurableAttribute(true);
///
///
/// Specifies the default value for the , which is . This field is
/// read-only.
///
///
public static readonly RecommendedAsConfigurableAttribute Default = No;
///
///
///
public override bool Equals(object obj) {
if (obj == this) {
return true;
}
RecommendedAsConfigurableAttribute other = obj as RecommendedAsConfigurableAttribute;
return other != null && other.RecommendedAsConfigurable == recommendedAsConfigurable;
}
///
///
/// Returns the hashcode for this object.
///
///
public override int GetHashCode() {
return base.GetHashCode();
}
///
///
///
public override bool IsDefaultAttribute() {
return !recommendedAsConfigurable;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.ComponentModel {
using System;
using System.Diagnostics;
using System.Security.Permissions;
///
/// Specifies that the property can be
/// used as an application setting.
///
[AttributeUsage(AttributeTargets.Property)]
[Obsolete("Use System.ComponentModel.SettingsBindableAttribute instead to work with the new settings model.")]
public class RecommendedAsConfigurableAttribute : Attribute {
private bool recommendedAsConfigurable = false;
///
///
/// Initializes a new instance of
/// the class.
///
///
public RecommendedAsConfigurableAttribute(bool recommendedAsConfigurable) {
this.recommendedAsConfigurable = recommendedAsConfigurable;
}
///
/// Gets a value indicating whether the property this
/// attribute is bound to can be used as an application setting.
///
public bool RecommendedAsConfigurable {
get {
return recommendedAsConfigurable;
}
}
///
///
/// Specifies that a property cannot be used as an application setting. This
/// field is read-only.
///
///
public static readonly RecommendedAsConfigurableAttribute No = new RecommendedAsConfigurableAttribute(false);
///
///
/// Specifies
/// that a property can be used as an application setting. This field is read-only.
///
///
public static readonly RecommendedAsConfigurableAttribute Yes = new RecommendedAsConfigurableAttribute(true);
///
///
/// Specifies the default value for the , which is . This field is
/// read-only.
///
///
public static readonly RecommendedAsConfigurableAttribute Default = No;
///
///
///
public override bool Equals(object obj) {
if (obj == this) {
return true;
}
RecommendedAsConfigurableAttribute other = obj as RecommendedAsConfigurableAttribute;
return other != null && other.RecommendedAsConfigurable == recommendedAsConfigurable;
}
///
///
/// Returns the hashcode for this object.
///
///
public override int GetHashCode() {
return base.GetHashCode();
}
///
///
///
public override bool IsDefaultAttribute() {
return !recommendedAsConfigurable;
}
}
}
// 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
- RenderDataDrawingContext.cs
- XmlNodeComparer.cs
- DataGrid.cs
- GridViewRowEventArgs.cs
- coordinatorscratchpad.cs
- ExternalFile.cs
- HeaderFilter.cs
- MiniAssembly.cs
- DataExpression.cs
- HashHelper.cs
- CookielessHelper.cs
- HtmlButton.cs
- SoapMessage.cs
- DataServiceQueryProvider.cs
- ChannelPoolSettings.cs
- RadioButtonDesigner.cs
- ButtonBase.cs
- LongSumAggregationOperator.cs
- DropTarget.cs
- FlowDocument.cs
- DataServicePagingProviderWrapper.cs
- StringComparer.cs
- TextBoxAutomationPeer.cs
- XPathConvert.cs
- CodeNamespaceCollection.cs
- DockProviderWrapper.cs
- SynthesizerStateChangedEventArgs.cs
- SiteMapDataSource.cs
- GradientSpreadMethodValidation.cs
- CapabilitiesSection.cs
- WebPartConnectionsDisconnectVerb.cs
- HostedNamedPipeTransportManager.cs
- ContainerParagraph.cs
- COSERVERINFO.cs
- WindowsProgressbar.cs
- EventMappingSettingsCollection.cs
- ProjectionNode.cs
- SqlBuilder.cs
- SchemaImporter.cs
- ZipFileInfoCollection.cs
- UndirectedGraph.cs
- TriggerActionCollection.cs
- Publisher.cs
- ProcessModelSection.cs
- GridViewAutomationPeer.cs
- ZeroOpNode.cs
- ComPlusInstanceProvider.cs
- RightNameExpirationInfoPair.cs
- SynchronizationContext.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- Listbox.cs
- CryptoConfig.cs
- TemplateInstanceAttribute.cs
- TextParagraphCache.cs
- ActivationServices.cs
- CellTreeNodeVisitors.cs
- _TimerThread.cs
- URLMembershipCondition.cs
- SQLSingleStorage.cs
- xmlsaver.cs
- ScriptHandlerFactory.cs
- CaseStatementProjectedSlot.cs
- WorkflowView.cs
- WindowsFormsDesignerOptionService.cs
- StandardTransformFactory.cs
- BindingNavigatorDesigner.cs
- SerializationException.cs
- SelectionItemPattern.cs
- FrugalList.cs
- TripleDESCryptoServiceProvider.cs
- Collection.cs
- BamlLocalizabilityResolver.cs
- ClassGenerator.cs
- Predicate.cs
- PassportAuthenticationModule.cs
- RepeatButton.cs
- ValueExpressions.cs
- SamlAuthenticationStatement.cs
- DataGridRowHeaderAutomationPeer.cs
- AxisAngleRotation3D.cs
- ClientScriptManager.cs
- ContextQuery.cs
- DockPatternIdentifiers.cs
- StylusPoint.cs
- __Error.cs
- SqlFunctions.cs
- InOutArgumentConverter.cs
- InfoCard.cs
- EnumValAlphaComparer.cs
- _TimerThread.cs
- HttpCookieCollection.cs
- FactoryMaker.cs
- WaitForChangedResult.cs
- MappingItemCollection.cs
- CharacterBuffer.cs
- TextEffect.cs
- MetadataHelper.cs
- SchemaType.cs
- XhtmlBasicPageAdapter.cs
- SmiMetaDataProperty.cs