Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DialogBaseForm.cs
- HttpGetServerProtocol.cs
- SmtpDigestAuthenticationModule.cs
- MasterPageBuildProvider.cs
- AppDomainAttributes.cs
- PageOrientation.cs
- SizeChangedInfo.cs
- PerfCounterSection.cs
- SchemaElement.cs
- Link.cs
- MapPathBasedVirtualPathProvider.cs
- Vector3DConverter.cs
- SecurityState.cs
- ToolStripDropDownMenu.cs
- WinFormsSecurity.cs
- UserControlBuildProvider.cs
- RectAnimationBase.cs
- BindingsSection.cs
- WebPartEventArgs.cs
- SpeechSynthesizer.cs
- WebPartConnectionsConnectVerb.cs
- MappingSource.cs
- BasicCommandTreeVisitor.cs
- ToolStripDropDownItem.cs
- ReadOnlyTernaryTree.cs
- EntityKeyElement.cs
- XPathArrayIterator.cs
- StringFreezingAttribute.cs
- DataGridViewAccessibleObject.cs
- ChannelSinkStacks.cs
- ObjectCacheSettings.cs
- GcSettings.cs
- MissingSatelliteAssemblyException.cs
- ToolBarButton.cs
- Animatable.cs
- DataControlPagerLinkButton.cs
- SettingsAttributes.cs
- XmlUrlEditor.cs
- ApplicationGesture.cs
- BitmapFrameDecode.cs
- DocumentsTrace.cs
- _Connection.cs
- WriteableBitmap.cs
- DataSet.cs
- DragDeltaEventArgs.cs
- FtpWebRequest.cs
- CellConstantDomain.cs
- FrameworkContentElement.cs
- ReferenceEqualityComparer.cs
- DefaultValueConverter.cs
- ToolStripDropDownItem.cs
- DynamicActionMessageFilter.cs
- SurrogateChar.cs
- x509store.cs
- RequestQueryProcessor.cs
- RegexWorker.cs
- SqlWorkflowInstanceStore.cs
- PropertyMapper.cs
- HttpProxyTransportBindingElement.cs
- MessageDesigner.cs
- Geometry3D.cs
- GlyphRun.cs
- GlyphRunDrawing.cs
- CodeAccessSecurityEngine.cs
- CodeParameterDeclarationExpression.cs
- PointAnimationUsingKeyFrames.cs
- SerializationInfo.cs
- HoistedLocals.cs
- CodeParameterDeclarationExpression.cs
- WizardForm.cs
- TypeValidationEventArgs.cs
- __ConsoleStream.cs
- AsymmetricKeyExchangeDeformatter.cs
- EntityStoreSchemaGenerator.cs
- ProvidersHelper.cs
- DataServiceEntityAttribute.cs
- Models.cs
- DiscriminatorMap.cs
- File.cs
- DataGridViewCheckBoxCell.cs
- ColorBlend.cs
- MissingSatelliteAssemblyException.cs
- XmlWhitespace.cs
- Rotation3D.cs
- X509CertificateCollection.cs
- WebConfigurationFileMap.cs
- FontFaceLayoutInfo.cs
- RtfControlWordInfo.cs
- CompositeCollection.cs
- PrePostDescendentsWalker.cs
- FileDialog_Vista_Interop.cs
- ByteRangeDownloader.cs
- LoadedEvent.cs
- KeyedCollection.cs
- HttpValueCollection.cs
- DBCommandBuilder.cs
- ColumnResult.cs
- DatagridviewDisplayedBandsData.cs
- IisTraceWebEventProvider.cs
- TextDecorationUnitValidation.cs