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; ////// [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
- RuleSettings.cs
- OdbcRowUpdatingEvent.cs
- HierarchicalDataSourceDesigner.cs
- WhiteSpaceTrimStringConverter.cs
- SHA1Managed.cs
- Line.cs
- RuntimeArgumentHandle.cs
- MainMenu.cs
- SqlDataSourceConfigureFilterForm.cs
- Error.cs
- Repeater.cs
- MiniAssembly.cs
- glyphs.cs
- AttachmentCollection.cs
- WebPartsSection.cs
- ArrayExtension.cs
- LayoutTableCell.cs
- Viewport2DVisual3D.cs
- Trigger.cs
- NotifyInputEventArgs.cs
- TextAutomationPeer.cs
- ResourceDescriptionAttribute.cs
- JoinCqlBlock.cs
- Symbol.cs
- BamlMapTable.cs
- ComboBoxRenderer.cs
- TdsParserStateObject.cs
- MenuScrollingVisibilityConverter.cs
- DBPropSet.cs
- ScopedMessagePartSpecification.cs
- ConnectionManagementSection.cs
- AddDataControlFieldDialog.cs
- ZoneMembershipCondition.cs
- UriExt.cs
- _TransmitFileOverlappedAsyncResult.cs
- SqlDataSourceSelectingEventArgs.cs
- BmpBitmapDecoder.cs
- OleDbParameterCollection.cs
- SystemIcons.cs
- FixedSOMTextRun.cs
- ObjectListCommandsPage.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- EntityContainerEntitySetDefiningQuery.cs
- IndexingContentUnit.cs
- BaseCollection.cs
- CommandID.cs
- SocketAddress.cs
- CodeCatchClauseCollection.cs
- TextPatternIdentifiers.cs
- ApplicationId.cs
- EncoderParameter.cs
- Positioning.cs
- XmlWrappingReader.cs
- XmlSchemaObjectTable.cs
- LinkDescriptor.cs
- DataServiceRequestException.cs
- RepeaterItemEventArgs.cs
- CacheChildrenQuery.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- X509Certificate2Collection.cs
- DataTableNewRowEvent.cs
- DTCTransactionManager.cs
- DateTimeConstantAttribute.cs
- StringReader.cs
- MouseButtonEventArgs.cs
- HTMLTagNameToTypeMapper.cs
- __ComObject.cs
- PrivateFontCollection.cs
- ItemContainerPattern.cs
- Cell.cs
- DbConnectionHelper.cs
- PersonalizationDictionary.cs
- DataGridAutoFormat.cs
- OperatingSystem.cs
- ManifestBasedResourceGroveler.cs
- XXXInfos.cs
- ProcessHost.cs
- DefaultValueTypeConverter.cs
- SharedTcpTransportManager.cs
- HtmlWindow.cs
- LinearKeyFrames.cs
- RowToParametersTransformer.cs
- HTTPNotFoundHandler.cs
- PathGeometry.cs
- ProviderMetadata.cs
- AsymmetricKeyExchangeDeformatter.cs
- SafeEventLogReadHandle.cs
- PerformanceCountersElement.cs
- DataMemberFieldConverter.cs
- FixedPageStructure.cs
- TreeViewDataItemAutomationPeer.cs
- CodePropertyReferenceExpression.cs
- Substitution.cs
- DependencyObjectPropertyDescriptor.cs
- ConfigXmlComment.cs
- RuntimeConfig.cs
- AssemblyAttributesGoHere.cs
- TaskFormBase.cs
- EmbeddedMailObjectsCollection.cs
- EmptyElement.cs