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
- NamespaceDecl.cs
- UnsafeNativeMethodsPenimc.cs
- ToolStripRenderer.cs
- SessionPageStatePersister.cs
- MetabaseSettingsIis7.cs
- StyleHelper.cs
- ProtocolsConfiguration.cs
- PlatformNotSupportedException.cs
- StorageComplexPropertyMapping.cs
- DesignerDataView.cs
- SqlUdtInfo.cs
- ComPlusTypeValidator.cs
- SqlDataSourceView.cs
- LinqDataSourceContextEventArgs.cs
- _DomainName.cs
- ObjectConverter.cs
- RightsManagementEncryptionTransform.cs
- ISFClipboardData.cs
- XmlSignatureProperties.cs
- DataGridViewAdvancedBorderStyle.cs
- ListViewSortEventArgs.cs
- SingletonChannelAcceptor.cs
- EventLogLink.cs
- AccessibleObject.cs
- SimpleColumnProvider.cs
- LOSFormatter.cs
- Script.cs
- JpegBitmapEncoder.cs
- GiveFeedbackEvent.cs
- ThreadPool.cs
- DATA_BLOB.cs
- DebugView.cs
- CollectionViewSource.cs
- SuppressMessageAttribute.cs
- MouseBinding.cs
- TextMessageEncoder.cs
- LinearGradientBrush.cs
- LocalizableAttribute.cs
- XmlHierarchicalEnumerable.cs
- BitmapPalette.cs
- TextOnlyOutput.cs
- Rijndael.cs
- AlternateViewCollection.cs
- _Events.cs
- ProcessMonitor.cs
- StylusPointPropertyUnit.cs
- DataSourceHelper.cs
- ToolStripDropTargetManager.cs
- PropertyMetadata.cs
- ConfigurationConverterBase.cs
- DesignTimeParseData.cs
- FixedDocumentPaginator.cs
- HttpCacheVary.cs
- ItemCheckEvent.cs
- ComPlusThreadInitializer.cs
- DataGridToolTip.cs
- MemberExpressionHelper.cs
- SizeAnimation.cs
- MessageHeaders.cs
- CodeExporter.cs
- InitiatorServiceModelSecurityTokenRequirement.cs
- HtmlHead.cs
- ChangeProcessor.cs
- TypeDelegator.cs
- RangeValuePattern.cs
- FontFamilyConverter.cs
- DataObjectCopyingEventArgs.cs
- ToolStripOverflow.cs
- GridViewSortEventArgs.cs
- DescriptionAttribute.cs
- ProcessModule.cs
- TypeElement.cs
- ScriptReference.cs
- MasterPageBuildProvider.cs
- DataControlLinkButton.cs
- OdbcConnection.cs
- SizeIndependentAnimationStorage.cs
- PenThreadPool.cs
- Authorization.cs
- OutKeywords.cs
- FontFamilyValueSerializer.cs
- Size.cs
- TypeLoadException.cs
- PeerTransportListenAddressConverter.cs
- ConstantExpression.cs
- _RequestCacheProtocol.cs
- XmlSchemaValidationException.cs
- BindingWorker.cs
- TraceLog.cs
- SafeCertificateStore.cs
- XmlRootAttribute.cs
- XamlFilter.cs
- ConstructorBuilder.cs
- Semaphore.cs
- EntityViewGenerationAttribute.cs
- BasePattern.cs
- DocumentViewerBase.cs
- BulletDecorator.cs
- SecurityPolicySection.cs
- PhysicalFontFamily.cs