Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / RunInstallerAttribute.cs / 1 / RunInstallerAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel { using System; using System.Diagnostics; using System.Security.Permissions; ////// /// [AttributeUsage(AttributeTargets.Class)] public class RunInstallerAttribute : Attribute { private bool runInstaller; ///Specifies whether an installer should be invoked during /// installation of an assembly. ////// /// public RunInstallerAttribute(bool runInstaller) { this.runInstaller = runInstaller; } ////// Initializes a new instance of /// the ///class. /// /// /// public bool RunInstaller { get { return runInstaller; } } ////// Gets a value indicating whether an installer should be /// invoked during installation of an assembly. /// ////// /// public static readonly RunInstallerAttribute Yes = new RunInstallerAttribute(true); ////// Specifies that a /// component is visible in a visual designer. This ///field is /// read-only. /// /// /// public static readonly RunInstallerAttribute No = new RunInstallerAttribute(false); ////// Specifies that a /// component /// is not visible in a visual designer. This ///field is /// read-only. /// /// /// public static readonly RunInstallerAttribute Default = No; ////// Specifies the default visiblity, which is ///. This field is /// read-only. /// /// /// /// public override bool Equals(object obj) { if (obj == this) { return true; } RunInstallerAttribute other = obj as RunInstallerAttribute; return other != null && other.RunInstaller == runInstaller; } ////// /// public override int GetHashCode() { return base.GetHashCode(); } ////// Returns the hashcode for this object. /// ////// /// /// public override bool IsDefaultAttribute() { return (this.Equals(Default)); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PropertyTabAttribute.cs
- NumericUpDownAcceleration.cs
- SqlMethodTransformer.cs
- SiteMapDesignerDataSourceView.cs
- WebRequest.cs
- Group.cs
- Mappings.cs
- SapiInterop.cs
- LicenseManager.cs
- ConfigXmlText.cs
- QueryPageSettingsEventArgs.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- AttributeQuery.cs
- TreeNodeClickEventArgs.cs
- QueryContinueDragEventArgs.cs
- HttpException.cs
- CodeCatchClause.cs
- BitmapSourceSafeMILHandle.cs
- BitVec.cs
- HashMembershipCondition.cs
- GlyphInfoList.cs
- ExpressionLexer.cs
- RuntimeWrappedException.cs
- ToolStripSeparatorRenderEventArgs.cs
- QueryOutputWriter.cs
- UnsafeNativeMethods.cs
- FastPropertyAccessor.cs
- TypeDescriptionProviderAttribute.cs
- QueryContinueDragEventArgs.cs
- ParserContext.cs
- PropertyGroupDescription.cs
- DataGridCaption.cs
- Dynamic.cs
- OrderedEnumerableRowCollection.cs
- URL.cs
- EntityParameter.cs
- SubMenuStyleCollection.cs
- ToolStripItemDataObject.cs
- CapabilitiesSection.cs
- WindowsListViewItem.cs
- BuildProviderCollection.cs
- BasePattern.cs
- TableLayoutStyle.cs
- TypeGenericEnumerableViewSchema.cs
- DataGridViewTopLeftHeaderCell.cs
- DbDataAdapter.cs
- PreservationFileReader.cs
- OleDbDataReader.cs
- LoadMessageLogger.cs
- InkSerializer.cs
- WorkItem.cs
- COM2IDispatchConverter.cs
- ExpressionBindingCollection.cs
- DataKeyArray.cs
- Function.cs
- ItemContainerGenerator.cs
- EntityDataSourceContextCreatingEventArgs.cs
- WindowsGrip.cs
- SqlNamer.cs
- Maps.cs
- MemoryMappedViewStream.cs
- DrawListViewSubItemEventArgs.cs
- PropertyToken.cs
- XmlSchemas.cs
- ActivityCodeGenerator.cs
- LinqDataSourceStatusEventArgs.cs
- Membership.cs
- KnownTypesHelper.cs
- ListControl.cs
- XmlCountingReader.cs
- AnimationTimeline.cs
- StrokeSerializer.cs
- StylusEventArgs.cs
- ConfigurationSection.cs
- FixUpCollection.cs
- ExecutionEngineException.cs
- StringSource.cs
- ExceptionUtil.cs
- GenericUriParser.cs
- HeaderCollection.cs
- PrintPageEvent.cs
- UIElementParagraph.cs
- CodeIdentifier.cs
- DispatcherProcessingDisabled.cs
- AlgoModule.cs
- RemotingConfigParser.cs
- ThicknessConverter.cs
- FontFamilyIdentifier.cs
- UserControlBuildProvider.cs
- safelinkcollection.cs
- HtmlInputHidden.cs
- StorageModelBuildProvider.cs
- IteratorFilter.cs
- RootBrowserWindowProxy.cs
- LocatorPart.cs
- _CacheStreams.cs
- Ray3DHitTestResult.cs
- MarshalByValueComponent.cs
- TemplateBamlRecordReader.cs
- GlyphsSerializer.cs