Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / RunInstallerAttribute.cs / 1305376 / 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)); } } } // 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
- LogLogRecordEnumerator.cs
- FormatSettings.cs
- MetadataPropertyCollection.cs
- DefaultAssemblyResolver.cs
- XmlSerializerFactory.cs
- CurrentChangingEventManager.cs
- CultureSpecificStringDictionary.cs
- SerialPort.cs
- CodeRegionDirective.cs
- Rotation3D.cs
- ProtocolsConfiguration.cs
- RemoteCryptoTokenProvider.cs
- RichTextBoxDesigner.cs
- PassportAuthenticationEventArgs.cs
- ValidationEventArgs.cs
- CloseSequence.cs
- RegexTree.cs
- GeneratedCodeAttribute.cs
- GifBitmapEncoder.cs
- DataGrid.cs
- safelink.cs
- SurrogateEncoder.cs
- GraphicsContainer.cs
- TimelineClockCollection.cs
- ConfigurationFileMap.cs
- CodeChecksumPragma.cs
- DefinitionBase.cs
- TypeForwardedFromAttribute.cs
- SqlInternalConnectionTds.cs
- BaseUriHelper.cs
- MemoryResponseElement.cs
- XmlQueryContext.cs
- FixedElement.cs
- XamlPoint3DCollectionSerializer.cs
- MetadataCacheItem.cs
- SchemaCompiler.cs
- UrlMappingCollection.cs
- TraceHandlerErrorFormatter.cs
- ListViewCancelEventArgs.cs
- EncryptedReference.cs
- BitVec.cs
- ControlPaint.cs
- XmlIncludeAttribute.cs
- mansign.cs
- IntSecurity.cs
- MediaScriptCommandRoutedEventArgs.cs
- WebConfigurationFileMap.cs
- HMACSHA512.cs
- XLinq.cs
- ControlDesigner.cs
- ContainerUtilities.cs
- GlobalizationAssembly.cs
- AnnotationService.cs
- SplitContainer.cs
- DrawToolTipEventArgs.cs
- ApplicationBuildProvider.cs
- ServiceOperation.cs
- UpDownBase.cs
- ManagedWndProcTracker.cs
- FileVersion.cs
- ViewLoader.cs
- AnchorEditor.cs
- MexTcpBindingCollectionElement.cs
- InternalBufferManager.cs
- GridView.cs
- Win32PrintDialog.cs
- EdmConstants.cs
- WebUtility.cs
- WindowProviderWrapper.cs
- BufferModeSettings.cs
- InstalledFontCollection.cs
- TrailingSpaceComparer.cs
- LogicalTreeHelper.cs
- CorrelationTokenTypeConvertor.cs
- ScrollData.cs
- CngProvider.cs
- OdbcEnvironment.cs
- GraphicsPath.cs
- WebPageTraceListener.cs
- PixelShader.cs
- CodeTypeDeclaration.cs
- StaticDataManager.cs
- AuthenticationModuleElementCollection.cs
- ControlPropertyNameConverter.cs
- InputScopeManager.cs
- BadImageFormatException.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ThreadAbortException.cs
- DesigntimeLicenseContext.cs
- EntityViewGenerationAttribute.cs
- GlyphManager.cs
- DataServiceQueryOfT.cs
- UserValidatedEventArgs.cs
- MutexSecurity.cs
- MailMessageEventArgs.cs
- Tile.cs
- DesignerActionUIStateChangeEventArgs.cs
- ClaimComparer.cs
- Point4DValueSerializer.cs
- SqlInternalConnectionTds.cs