Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- GeneralTransform2DTo3DTo2D.cs
- TraceProvider.cs
- EdmComplexPropertyAttribute.cs
- DbSetClause.cs
- TimeZoneInfo.cs
- StackSpiller.Generated.cs
- Operators.cs
- XmlNamedNodeMap.cs
- Method.cs
- Qualifier.cs
- Validator.cs
- Library.cs
- TableStyle.cs
- CodeDomDesignerLoader.cs
- VersionedStream.cs
- StringDictionaryWithComparer.cs
- CfgSemanticTag.cs
- NullableConverter.cs
- SimpleWebHandlerParser.cs
- ReservationCollection.cs
- TransformCryptoHandle.cs
- ClaimTypes.cs
- MessagePropertyDescription.cs
- RemotingException.cs
- ValidatingPropertiesEventArgs.cs
- DictionaryManager.cs
- NativeMethods.cs
- DataGridTable.cs
- ColorMap.cs
- ColumnHeaderConverter.cs
- IntPtr.cs
- BitmapEffectInputData.cs
- FontNamesConverter.cs
- OdbcErrorCollection.cs
- Enlistment.cs
- Size3DValueSerializer.cs
- AbsoluteQuery.cs
- Parser.cs
- EmptyQuery.cs
- ClonableStack.cs
- SystemIPv6InterfaceProperties.cs
- FontSourceCollection.cs
- XmlBinaryReaderSession.cs
- FieldTemplateFactory.cs
- ListMarkerSourceInfo.cs
- SoapSchemaMember.cs
- ListView.cs
- PipelineModuleStepContainer.cs
- ColumnReorderedEventArgs.cs
- InkCanvasSelection.cs
- Listen.cs
- GridViewSelectEventArgs.cs
- XmlSchemaImporter.cs
- DrawItemEvent.cs
- ValidationUtility.cs
- DispatcherEventArgs.cs
- TextCharacters.cs
- ListBindableAttribute.cs
- AudioDeviceOut.cs
- NativeActivityFaultContext.cs
- Slider.cs
- EventLogPermissionEntry.cs
- WebPartHeaderCloseVerb.cs
- OpCopier.cs
- PrincipalPermission.cs
- DotExpr.cs
- ReadOnlyDictionary.cs
- KerberosRequestorSecurityToken.cs
- LayoutTable.cs
- Span.cs
- ExpressionBuilderCollection.cs
- AQNBuilder.cs
- InkPresenterAutomationPeer.cs
- ContextProperty.cs
- DayRenderEvent.cs
- CdpEqualityComparer.cs
- DbConnectionPoolCounters.cs
- CodeTypeParameterCollection.cs
- IssuedTokenClientCredential.cs
- DataKey.cs
- Compiler.cs
- TableCellCollection.cs
- DoubleAnimationBase.cs
- DocumentGrid.cs
- TransformPattern.cs
- OwnerDrawPropertyBag.cs
- ValidationHelper.cs
- MailMessageEventArgs.cs
- WebPartTransformerCollection.cs
- CultureTableRecord.cs
- TextEmbeddedObject.cs
- HtmlPageAdapter.cs
- SqlProfileProvider.cs
- CustomAttributeSerializer.cs
- PathParser.cs
- BitmapEffectInputData.cs
- DBConcurrencyException.cs
- NamedObject.cs
- WebSysDisplayNameAttribute.cs
- ITextView.cs