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
- jithelpers.cs
- NameTable.cs
- XdrBuilder.cs
- DBPropSet.cs
- FixedSOMTableCell.cs
- ipaddressinformationcollection.cs
- TreeNodeMouseHoverEvent.cs
- LineInfo.cs
- DispatcherExceptionEventArgs.cs
- ImageSourceValueSerializer.cs
- ModifiableIteratorCollection.cs
- UdpMessageProperty.cs
- BaseTransportHeaders.cs
- ObjectNotFoundException.cs
- DbProviderFactories.cs
- CqlQuery.cs
- WebPartPersonalization.cs
- InputEventArgs.cs
- CounterSet.cs
- TypeSchema.cs
- XsltArgumentList.cs
- RectAnimationBase.cs
- NumberFormatter.cs
- Rijndael.cs
- QueryOutputWriter.cs
- FilterInvalidBodyAccessException.cs
- XmlArrayItemAttribute.cs
- UnsafeNativeMethods.cs
- WrappedIUnknown.cs
- ToolStripTextBox.cs
- SqlCachedBuffer.cs
- SqlUserDefinedAggregateAttribute.cs
- Animatable.cs
- Size3D.cs
- DocumentGrid.cs
- AppModelKnownContentFactory.cs
- AnnotationResourceChangedEventArgs.cs
- SymbolEqualComparer.cs
- NativeRecognizer.cs
- InvokeCompletedEventArgs.cs
- httpstaticobjectscollection.cs
- DataControlButton.cs
- SapiAttributeParser.cs
- InfoCardXmlSerializer.cs
- GraphicsPath.cs
- CacheMode.cs
- BackgroundFormatInfo.cs
- FilteredSchemaElementLookUpTable.cs
- NodeLabelEditEvent.cs
- CatalogZoneBase.cs
- DrawingVisualDrawingContext.cs
- ResourceKey.cs
- FontInfo.cs
- SqlDataSourceAdvancedOptionsForm.cs
- TreeView.cs
- UnaryNode.cs
- BadImageFormatException.cs
- LazyTextWriterCreator.cs
- MergeFilterQuery.cs
- TextProperties.cs
- XmlSchemaDatatype.cs
- OptimizedTemplateContentHelper.cs
- WSTrust.cs
- WebBrowserNavigatingEventHandler.cs
- LicenseException.cs
- ComboBoxItem.cs
- ToolStripContentPanelRenderEventArgs.cs
- CodeNamespace.cs
- SmtpMail.cs
- CssStyleCollection.cs
- WebReferencesBuildProvider.cs
- DataGridColumnHeaderAutomationPeer.cs
- ApplicationServiceManager.cs
- ArrayList.cs
- URI.cs
- InternalConfigHost.cs
- TextBox.cs
- ByteStack.cs
- HtmlTitle.cs
- DetailsViewCommandEventArgs.cs
- MaterialGroup.cs
- SmiEventSink_Default.cs
- MetafileHeaderWmf.cs
- TimeSpanValidator.cs
- RadioButtonList.cs
- ColorContextHelper.cs
- RectangleHotSpot.cs
- GroupBoxAutomationPeer.cs
- NetworkCredential.cs
- TimeSpanStorage.cs
- SystemColorTracker.cs
- Int16AnimationBase.cs
- LinearGradientBrush.cs
- ScrollData.cs
- PerfCounterSection.cs
- TreeViewCancelEvent.cs
- EnumValAlphaComparer.cs
- PublisherMembershipCondition.cs
- Int32.cs
- PeerResolverMode.cs