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
- ChangeInterceptorAttribute.cs
- Triangle.cs
- TimeSpanSecondsConverter.cs
- ControlLocalizer.cs
- HeaderUtility.cs
- AspCompat.cs
- ToolStripPanel.cs
- DomNameTable.cs
- FacetChecker.cs
- XPathChildIterator.cs
- QueryOutputWriterV1.cs
- IsolatedStorageException.cs
- ColorConvertedBitmap.cs
- ParserHooks.cs
- DecoderReplacementFallback.cs
- DataContractJsonSerializer.cs
- WebBrowserHelper.cs
- WindowsFormsSectionHandler.cs
- SkewTransform.cs
- DataServiceConfiguration.cs
- MediaSystem.cs
- TcpPortSharing.cs
- CfgArc.cs
- MimeMapping.cs
- LayoutUtils.cs
- Panel.cs
- CardSpaceShim.cs
- ZipFileInfo.cs
- TerminateSequence.cs
- ParameterElement.cs
- SortQuery.cs
- Paragraph.cs
- EntityDataSourceValidationException.cs
- BoundColumn.cs
- ArgIterator.cs
- PenCursorManager.cs
- PersonalizableAttribute.cs
- TableDetailsCollection.cs
- DeclarativeCatalogPart.cs
- SoapReflectionImporter.cs
- SqlCharStream.cs
- DataBindingList.cs
- Preprocessor.cs
- RegexCompilationInfo.cs
- CellQuery.cs
- ToolStripRenderEventArgs.cs
- DbParameterCollectionHelper.cs
- BreakSafeBase.cs
- SQLByte.cs
- NoneExcludedImageIndexConverter.cs
- StreamResourceInfo.cs
- SecurityKeyIdentifierClause.cs
- WebExceptionStatus.cs
- NumericUpDownAcceleration.cs
- IdentityNotMappedException.cs
- SafeThreadHandle.cs
- StructuredTypeEmitter.cs
- IHttpResponseInternal.cs
- ContentElement.cs
- StrokeNodeOperations2.cs
- DbParameterCollectionHelper.cs
- IndexedEnumerable.cs
- RequestCacheEntry.cs
- DataGridViewCellCancelEventArgs.cs
- RotateTransform3D.cs
- TemplateColumn.cs
- Compress.cs
- BamlTreeNode.cs
- ValidateNames.cs
- RunInstallerAttribute.cs
- Emitter.cs
- DesignTimeValidationFeature.cs
- CustomErrorsSection.cs
- DataBindEngine.cs
- SystemColors.cs
- RenderDataDrawingContext.cs
- CharEnumerator.cs
- WinEventWrap.cs
- Scripts.cs
- EmptyImpersonationContext.cs
- WorkflowItemsPresenter.cs
- Compiler.cs
- Main.cs
- SiteMapDesignerDataSourceView.cs
- TagPrefixInfo.cs
- CodeTypeParameter.cs
- Merger.cs
- XmlWrappingWriter.cs
- Scanner.cs
- UnsafeNativeMethods.cs
- NCryptNative.cs
- Interlocked.cs
- SafeRightsManagementQueryHandle.cs
- ExpressionQuoter.cs
- CommandPlan.cs
- EntityDataSourceStatementEditorForm.cs
- BoolExpression.cs
- XmlNode.cs
- EntityDataSourceDataSelection.cs
- parserscommon.cs