Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / RecommendedAsConfigurableAttribute.cs / 1305376 / 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
- SmtpSection.cs
- PathHelper.cs
- xmlsaver.cs
- ImageListImageEditor.cs
- ToggleButton.cs
- WebPartConnection.cs
- XmlChoiceIdentifierAttribute.cs
- ValueTable.cs
- CmsInterop.cs
- SafeRightsManagementSessionHandle.cs
- WebPartCollection.cs
- NonSerializedAttribute.cs
- AttachedPropertyBrowsableAttribute.cs
- HttpWebResponse.cs
- GuidelineSet.cs
- Merger.cs
- MultiSelectRootGridEntry.cs
- SchemaHelper.cs
- LinkGrep.cs
- PagePropertiesChangingEventArgs.cs
- Ref.cs
- newinstructionaction.cs
- ClonableStack.cs
- JoinCqlBlock.cs
- DifferencingCollection.cs
- DBCSCodePageEncoding.cs
- PageBuildProvider.cs
- entityreference_tresulttype.cs
- safemediahandle.cs
- xmlfixedPageInfo.cs
- Token.cs
- ProcessModule.cs
- StructuralObject.cs
- TraceContext.cs
- Tracking.cs
- BitmapEffectState.cs
- ImageSourceConverter.cs
- ExpandedWrapper.cs
- Nullable.cs
- DesignerForm.cs
- HtmlTableCellCollection.cs
- DependencyPropertyValueSerializer.cs
- QilFactory.cs
- WebBrowsableAttribute.cs
- EditorPartCollection.cs
- LoginView.cs
- Span.cs
- objectquery_tresulttype.cs
- MetadataArtifactLoader.cs
- CurrentChangingEventArgs.cs
- ChineseLunisolarCalendar.cs
- MatchAttribute.cs
- BitmapEffectState.cs
- ScopedKnownTypes.cs
- DupHandleConnectionReader.cs
- XmlSchemaElement.cs
- InfiniteIntConverter.cs
- DataColumnCollection.cs
- NativeCppClassAttribute.cs
- ManipulationDevice.cs
- MenuTracker.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- RightsManagementEncryptedStream.cs
- APCustomTypeDescriptor.cs
- SweepDirectionValidation.cs
- ParallelActivityDesigner.cs
- TypeUsage.cs
- StylusDevice.cs
- ExpressionBuilderCollection.cs
- SrgsSemanticInterpretationTag.cs
- PrimitiveXmlSerializers.cs
- LinqDataSourceDeleteEventArgs.cs
- EventHandlerList.cs
- DataTemplateKey.cs
- RegistryKey.cs
- UserInitiatedNavigationPermission.cs
- UriTemplateTrieLocation.cs
- CompiledQuery.cs
- Debugger.cs
- GeometryDrawing.cs
- AspNetRouteServiceHttpHandler.cs
- CustomCredentialPolicy.cs
- DataMemberConverter.cs
- Win32Exception.cs
- GridItem.cs
- FindCriteriaCD1.cs
- DriveNotFoundException.cs
- PlaceHolder.cs
- WebRequestModuleElement.cs
- UInt64Converter.cs
- DependencyPropertyValueSerializer.cs
- InternalConfigEventArgs.cs
- FileClassifier.cs
- SqlConnection.cs
- ScrollProperties.cs
- ProgressBarBrushConverter.cs
- ByteFacetDescriptionElement.cs
- SafeRegistryHandle.cs
- DBSqlParserColumn.cs
- PageWrapper.cs