Code:
/ FX-1434 / FX-1434 / 1.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
- OleDragDropHandler.cs
- SqlConnection.cs
- Collection.cs
- RemoteWebConfigurationHostStream.cs
- XmlSignatureManifest.cs
- Label.cs
- UpdatableGenericsFeature.cs
- WsdlInspector.cs
- LedgerEntryCollection.cs
- HttpBrowserCapabilitiesWrapper.cs
- VariableQuery.cs
- Script.cs
- TokenBasedSetEnumerator.cs
- KeyNotFoundException.cs
- printdlgexmarshaler.cs
- OracleCommand.cs
- ResourceDefaultValueAttribute.cs
- PropertyChangedEventArgs.cs
- FormView.cs
- DocumentReferenceCollection.cs
- DefaultObjectSerializer.cs
- BCLDebug.cs
- FontSourceCollection.cs
- GCHandleCookieTable.cs
- XmlNotation.cs
- ContainerFilterService.cs
- XmlMembersMapping.cs
- ExtensibleClassFactory.cs
- AssertSection.cs
- StickyNoteContentControl.cs
- StopRoutingHandler.cs
- SplineKeyFrames.cs
- RenderDataDrawingContext.cs
- BamlStream.cs
- Int32Rect.cs
- DataTemplateSelector.cs
- CodeChecksumPragma.cs
- NonBatchDirectoryCompiler.cs
- GridView.cs
- ViewEventArgs.cs
- FontWeights.cs
- BulletedListEventArgs.cs
- OutOfMemoryException.cs
- WorkItem.cs
- MeshGeometry3D.cs
- SystemUnicastIPAddressInformation.cs
- TreeViewImageIndexConverter.cs
- CacheModeConverter.cs
- XmlLangPropertyAttribute.cs
- Compiler.cs
- SqlTriggerAttribute.cs
- TableItemPattern.cs
- SecurityContext.cs
- Input.cs
- StylusEventArgs.cs
- Frame.cs
- OpacityConverter.cs
- XamlPointCollectionSerializer.cs
- SmtpFailedRecipientsException.cs
- Guid.cs
- Int32RectValueSerializer.cs
- TextRunCacheImp.cs
- QueryOperationResponseOfT.cs
- CellPartitioner.cs
- Brush.cs
- DateTimeOffset.cs
- AccessControlList.cs
- CalculatedColumn.cs
- cookieexception.cs
- CapabilitiesState.cs
- ApplicationActivator.cs
- PrintDocument.cs
- SudsWriter.cs
- PersistenceProviderDirectory.cs
- XmlnsDefinitionAttribute.cs
- PieceDirectory.cs
- ExceptionRoutedEventArgs.cs
- PrintController.cs
- RectangleConverter.cs
- BuildManagerHost.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- FormViewDeleteEventArgs.cs
- LogExtent.cs
- EntityException.cs
- QilPatternFactory.cs
- X509Utils.cs
- __ConsoleStream.cs
- DataGridPageChangedEventArgs.cs
- PrimitiveList.cs
- XmlNamespaceManager.cs
- OperatingSystem.cs
- BitmapEffectDrawing.cs
- ReliableSessionElement.cs
- ToolStripDesignerAvailabilityAttribute.cs
- DetailsViewUpdatedEventArgs.cs
- FixedDSBuilder.cs
- MatcherBuilder.cs
- TextComposition.cs
- Lasso.cs
- EnumValAlphaComparer.cs