Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- x509utils.cs
- WindowsListViewGroup.cs
- OutputCacheEntry.cs
- BufferedReceiveElement.cs
- SettingsProviderCollection.cs
- PopupRoot.cs
- WindowsAltTab.cs
- ObsoleteAttribute.cs
- ZeroOpNode.cs
- DrawingServices.cs
- DataObjectPastingEventArgs.cs
- SafeBitVector32.cs
- FormatterConverter.cs
- Instrumentation.cs
- ConfigurationValidatorAttribute.cs
- ServicePointManagerElement.cs
- DateTimeFormatInfoScanner.cs
- FormViewUpdatedEventArgs.cs
- rsa.cs
- MediaScriptCommandRoutedEventArgs.cs
- Parallel.cs
- LateBoundBitmapDecoder.cs
- IndentedWriter.cs
- ToolStripContainer.cs
- RegexWriter.cs
- DbMetaDataColumnNames.cs
- ExternalException.cs
- TableSectionStyle.cs
- ControlBuilderAttribute.cs
- DesignerListAdapter.cs
- ReferencedAssemblyResolver.cs
- ToolStripSystemRenderer.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ControlOperationInvoker.cs
- XmlSchemaComplexContentExtension.cs
- ExtensibleClassFactory.cs
- EntityModelSchemaGenerator.cs
- BitmapEffectGroup.cs
- XamlWrappingReader.cs
- TextTreeExtractElementUndoUnit.cs
- IntegerFacetDescriptionElement.cs
- WindowsListViewGroupSubsetLink.cs
- TemplateParser.cs
- MulticastDelegate.cs
- SqlGatherProducedAliases.cs
- ImageClickEventArgs.cs
- SelectionWordBreaker.cs
- DynamicPropertyReader.cs
- DataGridViewCellCancelEventArgs.cs
- FlatButtonAppearance.cs
- FunctionDescription.cs
- PointConverter.cs
- BitmapEffectDrawing.cs
- FastEncoderWindow.cs
- NetworkInformationPermission.cs
- CodeExpressionRuleDeclaration.cs
- ExecutionContext.cs
- TcpConnectionPoolSettings.cs
- EdmScalarPropertyAttribute.cs
- Pair.cs
- DispatcherTimer.cs
- EmbeddedMailObjectsCollection.cs
- XmlSchemaAny.cs
- DirectoryObjectSecurity.cs
- DefaultParameterValueAttribute.cs
- FixedTextBuilder.cs
- SecureEnvironment.cs
- returneventsaver.cs
- DeobfuscatingStream.cs
- ArrayList.cs
- SubqueryTrackingVisitor.cs
- RSAPKCS1KeyExchangeFormatter.cs
- CanExecuteRoutedEventArgs.cs
- TemplateColumn.cs
- ColumnMapTranslator.cs
- ParseNumbers.cs
- _Connection.cs
- MenuCommands.cs
- Button.cs
- PrintSchema.cs
- XmlStreamStore.cs
- SourceChangedEventArgs.cs
- FormsAuthenticationModule.cs
- IList.cs
- DeleteCardRequest.cs
- CryptographicAttribute.cs
- XPathDocument.cs
- StatusBarPanel.cs
- ContextMenuStripGroupCollection.cs
- BamlRecordReader.cs
- PlaceHolder.cs
- TriggerActionCollection.cs
- EasingKeyFrames.cs
- CustomErrorsSection.cs
- CodeDirectiveCollection.cs
- ResourceManagerWrapper.cs
- CharAnimationUsingKeyFrames.cs
- DataGridViewComboBoxCell.cs
- IriParsingElement.cs
- PropertyInfoSet.cs