Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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
- ResourcePermissionBase.cs
- ObjectStorage.cs
- MsmqIntegrationProcessProtocolHandler.cs
- Line.cs
- WebPartCollection.cs
- ProcessManager.cs
- LineServices.cs
- VSDExceptions.cs
- Item.cs
- WrappedIUnknown.cs
- UITypeEditors.cs
- FileLogRecordHeader.cs
- OleDbReferenceCollection.cs
- PageThemeParser.cs
- UnSafeCharBuffer.cs
- AliasGenerator.cs
- HtmlToClrEventProxy.cs
- AssemblyNameUtility.cs
- StylusPointPropertyInfoDefaults.cs
- SoapReflector.cs
- ButtonDesigner.cs
- DeadCharTextComposition.cs
- FrugalList.cs
- ReturnValue.cs
- TraceHandler.cs
- Rights.cs
- EntityProviderFactory.cs
- AttachmentService.cs
- ParserExtension.cs
- ListSourceHelper.cs
- Rules.cs
- DefaultValueConverter.cs
- FormattedTextSymbols.cs
- BlurBitmapEffect.cs
- ApplicationBuildProvider.cs
- ToolStripDropDownButton.cs
- IntegerValidatorAttribute.cs
- DependencyPropertyConverter.cs
- IconConverter.cs
- HostSecurityManager.cs
- SmiRequestExecutor.cs
- CodeIdentifiers.cs
- ManagementOperationWatcher.cs
- UIElementParaClient.cs
- CompositeFontParser.cs
- WindowsGraphics.cs
- DataBinding.cs
- WinEventQueueItem.cs
- Utils.cs
- MessageProtectionOrder.cs
- WebPartCollection.cs
- DropShadowEffect.cs
- TextPointerBase.cs
- TrustSection.cs
- GuidTagList.cs
- EventLogEntryCollection.cs
- QueueTransferProtocol.cs
- DataGridView.cs
- CookieParameter.cs
- SettingsProviderCollection.cs
- FixedBufferAttribute.cs
- ExportFileRequest.cs
- NetCodeGroup.cs
- InvalidPropValue.cs
- XPathDescendantIterator.cs
- BindValidator.cs
- ImageSource.cs
- DateTime.cs
- TextDecoration.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- PartialCachingControl.cs
- TypeSystemProvider.cs
- BinaryUtilClasses.cs
- Schedule.cs
- Camera.cs
- SystemKeyConverter.cs
- ZipIOBlockManager.cs
- ClientScriptManagerWrapper.cs
- TransformerTypeCollection.cs
- GlyphRun.cs
- X509IssuerSerialKeyIdentifierClause.cs
- ListItemCollection.cs
- RC2.cs
- TreeNode.cs
- LicenseContext.cs
- GacUtil.cs
- Propagator.cs
- WhitespaceRule.cs
- ServiceObjectContainer.cs
- Enum.cs
- CodeObjectCreateExpression.cs
- FormatConvertedBitmap.cs
- FileEnumerator.cs
- CodeArrayCreateExpression.cs
- CompilerErrorCollection.cs
- AmbientValueAttribute.cs
- Propagator.JoinPropagator.cs
- Buffer.cs
- TcpAppDomainProtocolHandler.cs
- ProcessModule.cs