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; ////// [AttributeUsage(AttributeTargets.Property)] [Obsolete("Use System.ComponentModel.SettingsBindableAttribute instead to work with the new settings model.")] public class RecommendedAsConfigurableAttribute : Attribute { private bool recommendedAsConfigurable = false; ///Specifies that the property can be /// used as an application setting. ////// public RecommendedAsConfigurableAttribute(bool recommendedAsConfigurable) { this.recommendedAsConfigurable = recommendedAsConfigurable; } ////// Initializes a new instance of /// the ///class. /// /// public bool RecommendedAsConfigurable { get { return recommendedAsConfigurable; } } ///Gets a value indicating whether the property this /// attribute is bound to can be used as an application setting. ////// public static readonly RecommendedAsConfigurableAttribute No = new RecommendedAsConfigurableAttribute(false); ////// Specifies that a property cannot be used as an application setting. This /// ///field is read-only. /// /// public static readonly RecommendedAsConfigurableAttribute Yes = new RecommendedAsConfigurableAttribute(true); ////// Specifies /// that a property can be used as an application setting. This ///field is read-only. /// /// public static readonly RecommendedAsConfigurableAttribute Default = No; ////// Specifies the default value for the ///, which is . This field is /// read-only. /// /// /// public override bool Equals(object obj) { if (obj == this) { return true; } RecommendedAsConfigurableAttribute other = obj as RecommendedAsConfigurableAttribute; return other != null && other.RecommendedAsConfigurable == recommendedAsConfigurable; } ////// public override int GetHashCode() { return base.GetHashCode(); } ////// Returns the hashcode for this object. /// ////// /// 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; ////// [AttributeUsage(AttributeTargets.Property)] [Obsolete("Use System.ComponentModel.SettingsBindableAttribute instead to work with the new settings model.")] public class RecommendedAsConfigurableAttribute : Attribute { private bool recommendedAsConfigurable = false; ///Specifies that the property can be /// used as an application setting. ////// public RecommendedAsConfigurableAttribute(bool recommendedAsConfigurable) { this.recommendedAsConfigurable = recommendedAsConfigurable; } ////// Initializes a new instance of /// the ///class. /// /// public bool RecommendedAsConfigurable { get { return recommendedAsConfigurable; } } ///Gets a value indicating whether the property this /// attribute is bound to can be used as an application setting. ////// public static readonly RecommendedAsConfigurableAttribute No = new RecommendedAsConfigurableAttribute(false); ////// Specifies that a property cannot be used as an application setting. This /// ///field is read-only. /// /// public static readonly RecommendedAsConfigurableAttribute Yes = new RecommendedAsConfigurableAttribute(true); ////// Specifies /// that a property can be used as an application setting. This ///field is read-only. /// /// public static readonly RecommendedAsConfigurableAttribute Default = No; ////// Specifies the default value for the ///, which is . This field is /// read-only. /// /// /// public override bool Equals(object obj) { if (obj == this) { return true; } RecommendedAsConfigurableAttribute other = obj as RecommendedAsConfigurableAttribute; return other != null && other.RecommendedAsConfigurable == recommendedAsConfigurable; } ////// public override int GetHashCode() { return base.GetHashCode(); } ////// Returns the hashcode for this object. /// ////// /// 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
- WindowsIdentity.cs
- cookieexception.cs
- ToolBarButton.cs
- SafeNativeMethodsMilCoreApi.cs
- BoundColumn.cs
- IdentityReference.cs
- XPathParser.cs
- ExecutedRoutedEventArgs.cs
- Catch.cs
- CompilerTypeWithParams.cs
- NullableDecimalMinMaxAggregationOperator.cs
- BufferModeSettings.cs
- BinHexDecoder.cs
- EdmMember.cs
- SystemKeyConverter.cs
- Application.cs
- DragDropHelper.cs
- TextBoxLine.cs
- TableHeaderCell.cs
- AVElementHelper.cs
- XmlQueryStaticData.cs
- SchemaSetCompiler.cs
- ApplicationBuildProvider.cs
- TextViewSelectionProcessor.cs
- SqlGenericUtil.cs
- DependencyProperty.cs
- WebPartHelpVerb.cs
- GeneralTransform3DGroup.cs
- EncoderFallback.cs
- Point3DIndependentAnimationStorage.cs
- PageContent.cs
- CFGGrammar.cs
- LicFileLicenseProvider.cs
- FrugalList.cs
- ExtentCqlBlock.cs
- latinshape.cs
- WindowsListBox.cs
- OleDbStruct.cs
- DataKeyCollection.cs
- MailWebEventProvider.cs
- WinFormsSecurity.cs
- MessageDecoder.cs
- IdentitySection.cs
- DeflateEmulationStream.cs
- PointCollection.cs
- DiscreteKeyFrames.cs
- SqlTriggerContext.cs
- RewritingValidator.cs
- StandardToolWindows.cs
- DesignerCalendarAdapter.cs
- Win32KeyboardDevice.cs
- TypeExtension.cs
- HwndKeyboardInputProvider.cs
- GCHandleCookieTable.cs
- FormViewRow.cs
- XappLauncher.cs
- CodeCompileUnit.cs
- CompareInfo.cs
- ShaderRenderModeValidation.cs
- FileDetails.cs
- DataServiceContext.cs
- Setter.cs
- ReflectionHelper.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- OrderedDictionary.cs
- EdmRelationshipRoleAttribute.cs
- OleDbRowUpdatingEvent.cs
- CounterSampleCalculator.cs
- DetailsViewUpdateEventArgs.cs
- ToolStripGripRenderEventArgs.cs
- Variant.cs
- DebugViewWriter.cs
- RuleSetReference.cs
- SubtreeProcessor.cs
- CfgParser.cs
- GenericEnumConverter.cs
- DataList.cs
- PeerEndPoint.cs
- VisualStyleRenderer.cs
- Light.cs
- PositiveTimeSpanValidator.cs
- CompositionTarget.cs
- StateMachineSubscription.cs
- OdbcConnectionStringbuilder.cs
- ListBindingConverter.cs
- CheckBoxBaseAdapter.cs
- CodeTypeParameterCollection.cs
- ScriptResourceHandler.cs
- InstancePersistenceCommandException.cs
- Operator.cs
- CodeAttachEventStatement.cs
- ColumnBinding.cs
- ConstructorBuilder.cs
- XmlSchemaSet.cs
- Attachment.cs
- ChineseLunisolarCalendar.cs
- UnescapedXmlDiagnosticData.cs
- ItemMap.cs
- SubMenuStyle.cs
- SecurityAccessDeniedException.cs