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
- DataGridViewCellValidatingEventArgs.cs
- DESCryptoServiceProvider.cs
- ExpressionPrefixAttribute.cs
- MessageBox.cs
- DeferredElementTreeState.cs
- RegistrationServices.cs
- RootDesignerSerializerAttribute.cs
- TextOnlyOutput.cs
- VisemeEventArgs.cs
- ChameleonKey.cs
- MessageDecoder.cs
- LinkButton.cs
- AQNBuilder.cs
- TargetConverter.cs
- MimeParameters.cs
- AtomPub10CategoriesDocumentFormatter.cs
- ColumnMapCopier.cs
- XmlBufferReader.cs
- PreservationFileWriter.cs
- CardSpacePolicyElement.cs
- BufferBuilder.cs
- DocumentManager.cs
- ReadOnlyTernaryTree.cs
- SoapInteropTypes.cs
- RewritingProcessor.cs
- DesignerValidationSummaryAdapter.cs
- EllipticalNodeOperations.cs
- PersonalizableAttribute.cs
- ProcessStartInfo.cs
- SqlMethods.cs
- HealthMonitoringSectionHelper.cs
- SwitchDesigner.xaml.cs
- QilExpression.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- DataSourceView.cs
- ConfigurationPermission.cs
- SoapCommonClasses.cs
- Application.cs
- ContextBase.cs
- ProtocolProfile.cs
- RecordManager.cs
- AtomMaterializerLog.cs
- BindingEditor.xaml.cs
- TraceLevelHelper.cs
- MatrixUtil.cs
- CatchBlock.cs
- QueryableDataSource.cs
- AutoGeneratedField.cs
- ConfigurationManagerInternal.cs
- XamlUtilities.cs
- ServicePrincipalNameElement.cs
- DataViewSetting.cs
- SqlVersion.cs
- AnnotationResourceChangedEventArgs.cs
- PerformanceCounterManager.cs
- ObjectDataSourceEventArgs.cs
- DataShape.cs
- TextRangeEdit.cs
- IDispatchConstantAttribute.cs
- ColorConvertedBitmap.cs
- SmtpLoginAuthenticationModule.cs
- DataGridViewColumnStateChangedEventArgs.cs
- DesignerActionItemCollection.cs
- ipaddressinformationcollection.cs
- Matrix3DConverter.cs
- WindowsSlider.cs
- SqlConnectionPoolGroupProviderInfo.cs
- RegexTree.cs
- HandleDictionary.cs
- ConfigXmlSignificantWhitespace.cs
- ConvertEvent.cs
- SchemaNames.cs
- cookiecollection.cs
- XmlSchemaRedefine.cs
- Switch.cs
- ScriptDescriptor.cs
- SqlNamer.cs
- AssemblyBuilderData.cs
- HebrewCalendar.cs
- AdPostCacheSubstitution.cs
- _CommandStream.cs
- StyleSelector.cs
- Aggregates.cs
- SelectionItemPattern.cs
- XpsImage.cs
- TemplateInstanceAttribute.cs
- DataBindingHandlerAttribute.cs
- SecurityException.cs
- XmlCharCheckingWriter.cs
- StylusSystemGestureEventArgs.cs
- EventSinkHelperWriter.cs
- WSHttpSecurityElement.cs
- NativeCompoundFileAPIs.cs
- SessionPageStatePersister.cs
- FtpRequestCacheValidator.cs
- CursorConverter.cs
- SessionPageStateSection.cs
- ResourceDescriptionAttribute.cs
- ApplicationActivator.cs
- QueuePropertyVariants.cs