Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- XPathNodePointer.cs
- IgnoreFileBuildProvider.cs
- OptimizerPatterns.cs
- CharConverter.cs
- StorageComplexPropertyMapping.cs
- FromRequest.cs
- EmissiveMaterial.cs
- TdsEnums.cs
- FormViewUpdateEventArgs.cs
- AudioFormatConverter.cs
- TextRangeAdaptor.cs
- storepermissionattribute.cs
- PtsContext.cs
- StringConcat.cs
- RenderData.cs
- CaseInsensitiveHashCodeProvider.cs
- RequestQueryProcessor.cs
- DataGridTable.cs
- input.cs
- ReaderWriterLock.cs
- PixelFormat.cs
- RelatedImageListAttribute.cs
- HeaderedItemsControl.cs
- DataViewManagerListItemTypeDescriptor.cs
- GeometryGroup.cs
- StylusPointPropertyUnit.cs
- ApplicationSecurityManager.cs
- CryptoApi.cs
- Point3DCollection.cs
- SystemColorTracker.cs
- InheritanceAttribute.cs
- DataGridViewDataConnection.cs
- InfoCardMetadataExchangeClient.cs
- TransformConverter.cs
- TextEditorDragDrop.cs
- DesignerOptions.cs
- BindingContext.cs
- CustomErrorsSectionWrapper.cs
- Vector3DValueSerializer.cs
- TrackBarRenderer.cs
- SqlDataSourceView.cs
- FlagsAttribute.cs
- WmiPutTraceRecord.cs
- StylusShape.cs
- SqlEnums.cs
- CustomAttributeFormatException.cs
- FamilyTypefaceCollection.cs
- X509RawDataKeyIdentifierClause.cs
- PolyBezierSegment.cs
- Regex.cs
- XmlLanguageConverter.cs
- Attributes.cs
- FixedSOMFixedBlock.cs
- TreeWalkHelper.cs
- Grid.cs
- HttpHandlerActionCollection.cs
- ComponentConverter.cs
- IncrementalCompileAnalyzer.cs
- BitmapEffectGroup.cs
- WebBrowserNavigatingEventHandler.cs
- BackStopAuthenticationModule.cs
- List.cs
- ExtensionDataReader.cs
- OleDbRowUpdatedEvent.cs
- JsonDataContract.cs
- HMACRIPEMD160.cs
- ListDataBindEventArgs.cs
- DataContract.cs
- RTLAwareMessageBox.cs
- ParamArrayAttribute.cs
- BatchServiceHost.cs
- ComponentCache.cs
- APCustomTypeDescriptor.cs
- OletxEnlistment.cs
- GraphicsState.cs
- ZipIOExtraField.cs
- SByteConverter.cs
- PassportAuthentication.cs
- FixedSOMSemanticBox.cs
- Vector3DConverter.cs
- XXXOnTypeBuilderInstantiation.cs
- brushes.cs
- DecimalConverter.cs
- ByteBufferPool.cs
- ByteRangeDownloader.cs
- StretchValidation.cs
- AmbiguousMatchException.cs
- UnaryExpression.cs
- ConditionBrowserDialog.cs
- NotEqual.cs
- Matrix.cs
- DataGridHeaderBorder.cs
- RuntimeHandles.cs
- NumberFunctions.cs
- DetailsViewDeleteEventArgs.cs
- DispatcherHooks.cs
- DispatcherEventArgs.cs
- SafePEFileHandle.cs
- HandleCollector.cs
- FontWeight.cs