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
- CapabilitiesSection.cs
- TextEncodedRawTextWriter.cs
- RadioButtonRenderer.cs
- Substitution.cs
- CopyCodeAction.cs
- ipaddressinformationcollection.cs
- SqlXmlStorage.cs
- DataGridViewRowCollection.cs
- TableProviderWrapper.cs
- BamlBinaryWriter.cs
- XamlBrushSerializer.cs
- Typeface.cs
- Canvas.cs
- DataGridViewColumn.cs
- DocumentDesigner.cs
- SamlAssertion.cs
- COMException.cs
- PersianCalendar.cs
- OutputScope.cs
- SqlNode.cs
- BitmapEffectDrawing.cs
- Tool.cs
- XmlDataSource.cs
- Geometry.cs
- SqlInfoMessageEvent.cs
- TemplateBuilder.cs
- HyperLinkColumn.cs
- JournalEntry.cs
- IBuiltInEvidence.cs
- StoreAnnotationsMap.cs
- Int64Converter.cs
- CryptoHelper.cs
- SoapParser.cs
- AutomationPropertyInfo.cs
- Win32Native.cs
- Renderer.cs
- StateWorkerRequest.cs
- EUCJPEncoding.cs
- RecognizerInfo.cs
- UserControl.cs
- SamlConstants.cs
- TextSpanModifier.cs
- handlecollector.cs
- InputEventArgs.cs
- MailAddress.cs
- DataGridViewCellConverter.cs
- NativeCppClassAttribute.cs
- InputBinding.cs
- RelationshipNavigation.cs
- AutoCompleteStringCollection.cs
- OrderByQueryOptionExpression.cs
- CodeTypeConstructor.cs
- DecimalStorage.cs
- SoapSchemaMember.cs
- DateTimeOffsetStorage.cs
- DataSourceDesigner.cs
- ProcessThreadCollection.cs
- SqlCachedBuffer.cs
- Point.cs
- DummyDataSource.cs
- Condition.cs
- Converter.cs
- DesignConnection.cs
- InputScope.cs
- SoapEnumAttribute.cs
- RawMouseInputReport.cs
- EventLogEntryCollection.cs
- PlatformCulture.cs
- TrackingRecordPreFilter.cs
- StringOutput.cs
- CodeObject.cs
- MediaElementAutomationPeer.cs
- BaseInfoTable.cs
- CodeNamespaceImportCollection.cs
- SecurityManager.cs
- _IPv6Address.cs
- securitymgrsite.cs
- TextLineResult.cs
- PassportIdentity.cs
- FieldCollectionEditor.cs
- DesignerAdapterUtil.cs
- IndexerNameAttribute.cs
- DataGridViewCell.cs
- PageBuildProvider.cs
- UserNamePasswordServiceCredential.cs
- DigestTraceRecordHelper.cs
- URLAttribute.cs
- CommandHelper.cs
- DefaultIfEmptyQueryOperator.cs
- XmlSchemaIdentityConstraint.cs
- ReceiveParametersContent.cs
- ColumnMap.cs
- AudioFileOut.cs
- DynamicMethod.cs
- XamlFrame.cs
- TriState.cs
- x509utils.cs
- ColorConverter.cs
- TypeToken.cs
- XmlSerializerVersionAttribute.cs