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
- ToolStripHighContrastRenderer.cs
- CultureInfoConverter.cs
- WebPartTransformerAttribute.cs
- CellConstantDomain.cs
- SelectionEditingBehavior.cs
- FocusChangedEventArgs.cs
- ProjectionCamera.cs
- ResourcePermissionBase.cs
- VirtualizingPanel.cs
- KeyPressEvent.cs
- HttpClientChannel.cs
- COM2ComponentEditor.cs
- ScriptHandlerFactory.cs
- IndicFontClient.cs
- cryptoapiTransform.cs
- ToolStripSeparatorRenderEventArgs.cs
- OverflowException.cs
- VirtualizingStackPanel.cs
- BadImageFormatException.cs
- ToolStripArrowRenderEventArgs.cs
- OdbcStatementHandle.cs
- LongCountAggregationOperator.cs
- ButtonFlatAdapter.cs
- BaseConfigurationRecord.cs
- FastEncoder.cs
- ToolBarDesigner.cs
- Configuration.cs
- XmlSerializerFactory.cs
- PropertyGeneratedEventArgs.cs
- PropertyDescriptorGridEntry.cs
- ExecutionContext.cs
- AddInEnvironment.cs
- TrackingParameters.cs
- _BasicClient.cs
- Property.cs
- Component.cs
- LambdaCompiler.Binary.cs
- UnauthorizedWebPart.cs
- AnimationTimeline.cs
- OdbcTransaction.cs
- WebPartDescription.cs
- PropertyReferenceExtension.cs
- OdbcConnectionFactory.cs
- X509Chain.cs
- SqlColumnizer.cs
- WorkerRequest.cs
- InternalDispatchObject.cs
- DoubleStorage.cs
- BufferedGraphicsManager.cs
- ControlDesignerState.cs
- PrimitiveXmlSerializers.cs
- ConnectionsZone.cs
- Light.cs
- ArrayWithOffset.cs
- SHA512.cs
- WeakRefEnumerator.cs
- TextTreeUndoUnit.cs
- SelectorItemAutomationPeer.cs
- ChangesetResponse.cs
- HttpServerChannel.cs
- SystemFonts.cs
- SmiEventSink.cs
- XmlSchemaGroupRef.cs
- NativeMethods.cs
- SqlCacheDependency.cs
- HtmlAnchor.cs
- NativeMethods.cs
- SemanticAnalyzer.cs
- MessagePartDescriptionCollection.cs
- DataStreams.cs
- VectorCollection.cs
- XmlSerializerNamespaces.cs
- WindowPattern.cs
- StrokeNode.cs
- AuthenticationService.cs
- translator.cs
- SliderAutomationPeer.cs
- LambdaCompiler.Lambda.cs
- HtmlTableCellCollection.cs
- SQLInt32.cs
- Simplifier.cs
- HttpConfigurationContext.cs
- ThaiBuddhistCalendar.cs
- CollectionDataContractAttribute.cs
- CombinedGeometry.cs
- ServiceNameCollection.cs
- DbConvert.cs
- CommandEventArgs.cs
- StringAnimationUsingKeyFrames.cs
- ProviderUtil.cs
- XmlSerializerOperationFormatter.cs
- DbConnectionPool.cs
- MimePart.cs
- TextEditorContextMenu.cs
- RequestTimeoutManager.cs
- BasePropertyDescriptor.cs
- Vector.cs
- SQLBoolean.cs
- QilCloneVisitor.cs
- ChtmlCommandAdapter.cs