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
- ScopeElementCollection.cs
- SystemBrushes.cs
- FixedPageStructure.cs
- MtomMessageEncodingElement.cs
- Endpoint.cs
- CodeCatchClause.cs
- EnumMember.cs
- ProxyGenerator.cs
- PagerSettings.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- SectionXmlInfo.cs
- TypeInfo.cs
- BitArray.cs
- RecognitionEventArgs.cs
- PageBreakRecord.cs
- ComplexTypeEmitter.cs
- OdbcConnection.cs
- _SSPISessionCache.cs
- ProfessionalColorTable.cs
- CustomSignedXml.cs
- ObsoleteAttribute.cs
- ProtectedConfigurationSection.cs
- TimeoutValidationAttribute.cs
- ComboBox.cs
- CompModSwitches.cs
- PingReply.cs
- UIPropertyMetadata.cs
- AddressingProperty.cs
- CloudCollection.cs
- Vector3DAnimationUsingKeyFrames.cs
- MbpInfo.cs
- DefaultTextStoreTextComposition.cs
- Int64Animation.cs
- ElementAtQueryOperator.cs
- RangeExpression.cs
- MailWriter.cs
- WindowsSpinner.cs
- TagMapInfo.cs
- AssertFilter.cs
- ConfigurationErrorsException.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- BaseTemplateCodeDomTreeGenerator.cs
- WindowsRichEdit.cs
- ToolboxItemWrapper.cs
- JsonQNameDataContract.cs
- BufferAllocator.cs
- DateTimeOffsetConverter.cs
- PageContent.cs
- StyleXamlParser.cs
- WebPartConnectionsCancelVerb.cs
- XmlDocumentSchema.cs
- SpecularMaterial.cs
- HtmlInputReset.cs
- EventlogProvider.cs
- SmtpTransport.cs
- SwitchExpression.cs
- WeakReadOnlyCollection.cs
- ConfigXmlText.cs
- StylusPointPropertyUnit.cs
- UserControlAutomationPeer.cs
- ObjectStorage.cs
- NodeFunctions.cs
- coordinator.cs
- OrderByQueryOptionExpression.cs
- RemotingConfigParser.cs
- TabControlToolboxItem.cs
- ConnectionPoint.cs
- DateTimePicker.cs
- PathFigure.cs
- PrintPageEvent.cs
- IgnoreFileBuildProvider.cs
- _SpnDictionary.cs
- FragmentQuery.cs
- _FixedSizeReader.cs
- XmlDataSourceView.cs
- BuildProviderAppliesToAttribute.cs
- lengthconverter.cs
- TypedOperationInfo.cs
- ConfigsHelper.cs
- ObjectDataProvider.cs
- AudienceUriMode.cs
- ReadOnlyCollection.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- CollectionViewSource.cs
- SafeViewOfFileHandle.cs
- IconHelper.cs
- TcpConnectionPoolSettingsElement.cs
- Matrix3DValueSerializer.cs
- BaseTemplateParser.cs
- DecoderFallback.cs
- PropertyChangeTracker.cs
- XmlRootAttribute.cs
- SqlErrorCollection.cs
- QilIterator.cs
- ZoneIdentityPermission.cs
- SqlDataRecord.cs
- EventWaitHandle.cs
- DirectionalLight.cs
- WebPartDisplayModeCancelEventArgs.cs
- ComponentRenameEvent.cs