Code:
/ FX-1434 / FX-1434 / 1.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
- COSERVERINFO.cs
- OutOfProcStateClientManager.cs
- FrameworkElementFactoryMarkupObject.cs
- SqlTopReducer.cs
- ButtonChrome.cs
- StandardCommandToolStripMenuItem.cs
- ConfigXmlText.cs
- OleDbRowUpdatedEvent.cs
- IIS7UserPrincipal.cs
- HealthMonitoringSection.cs
- ColorConvertedBitmap.cs
- HttpStreamMessageEncoderFactory.cs
- LineInfo.cs
- hresults.cs
- LingerOption.cs
- PeerValidationBehavior.cs
- WCFServiceClientProxyGenerator.cs
- AsyncPostBackTrigger.cs
- OletxVolatileEnlistment.cs
- FileDialog_Vista_Interop.cs
- DataRecord.cs
- DefaultEvaluationContext.cs
- ProvidersHelper.cs
- SelectedCellsCollection.cs
- FrameworkContentElement.cs
- handlecollector.cs
- HttpCacheVary.cs
- Rss20ItemFormatter.cs
- PropertyEmitter.cs
- DataPointer.cs
- ImageClickEventArgs.cs
- ResXResourceWriter.cs
- EditingMode.cs
- Size.cs
- SequentialOutput.cs
- XmlSchemaComplexContentRestriction.cs
- PanelDesigner.cs
- objectresult_tresulttype.cs
- ValidationEventArgs.cs
- ClickablePoint.cs
- RadioButtonBaseAdapter.cs
- Interlocked.cs
- SqlWriter.cs
- ParameterElement.cs
- CleanUpVirtualizedItemEventArgs.cs
- EventEntry.cs
- JavaScriptString.cs
- ForwardPositionQuery.cs
- DecoratedNameAttribute.cs
- WebPartTransformerCollection.cs
- TableAutomationPeer.cs
- Vector3DIndependentAnimationStorage.cs
- ErrorFormatterPage.cs
- SecureStringHasher.cs
- Object.cs
- FileRegion.cs
- GifBitmapEncoder.cs
- RootBrowserWindowAutomationPeer.cs
- Matrix3DStack.cs
- DetailsViewModeEventArgs.cs
- Storyboard.cs
- RegexCompiler.cs
- FixedSOMPage.cs
- HostVisual.cs
- CodeGotoStatement.cs
- DateTimeFormatInfoScanner.cs
- CmsInterop.cs
- LassoSelectionBehavior.cs
- ColorTransformHelper.cs
- CanonicalFontFamilyReference.cs
- XmlNode.cs
- COSERVERINFO.cs
- GridViewUpdatedEventArgs.cs
- MemberAccessException.cs
- ScrollContentPresenter.cs
- AppDomain.cs
- PublisherIdentityPermission.cs
- DocumentCollection.cs
- coordinator.cs
- RegexParser.cs
- FormatControl.cs
- EventItfInfo.cs
- AssemblyNameUtility.cs
- ReliabilityContractAttribute.cs
- JournalEntryStack.cs
- EntityClientCacheEntry.cs
- BeginStoryboard.cs
- WeakReference.cs
- SQLMoneyStorage.cs
- Header.cs
- FloatSumAggregationOperator.cs
- WorkflowRuntimeService.cs
- InlineObject.cs
- Color.cs
- JoinTreeNode.cs
- ImageField.cs
- XPathMessageFilterElement.cs
- FixedDSBuilder.cs
- UserUseLicenseDictionaryLoader.cs
- HttpValueCollection.cs