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
- Internal.cs
- DispatcherHookEventArgs.cs
- AsmxEndpointPickerExtension.cs
- Pair.cs
- Compilation.cs
- AutomationProperty.cs
- AuthStoreRoleProvider.cs
- TreeView.cs
- ExponentialEase.cs
- Event.cs
- Hyperlink.cs
- XamlFigureLengthSerializer.cs
- TextServicesProperty.cs
- ToolStripDropDown.cs
- XPathNavigator.cs
- HtmlControlAdapter.cs
- EntityDataSourceChangedEventArgs.cs
- CodeExporter.cs
- CacheChildrenQuery.cs
- WindowsSolidBrush.cs
- PublisherMembershipCondition.cs
- RadioButtonRenderer.cs
- C14NUtil.cs
- InkCanvasInnerCanvas.cs
- Repeater.cs
- UndirectedGraph.cs
- BodyWriter.cs
- ADMembershipProvider.cs
- HttpPostProtocolReflector.cs
- StringPropertyBuilder.cs
- OptimizerPatterns.cs
- PtsContext.cs
- Peer.cs
- StylusDevice.cs
- RelationHandler.cs
- Paragraph.cs
- KeyGesture.cs
- returneventsaver.cs
- LambdaCompiler.Logical.cs
- ShowExpandedMultiValueConverter.cs
- sortedlist.cs
- ImageCodecInfo.cs
- RawKeyboardInputReport.cs
- DetailsView.cs
- EnumerableRowCollectionExtensions.cs
- TextSelectionProcessor.cs
- StatusBarItemAutomationPeer.cs
- ExpandSegmentCollection.cs
- ReservationNotFoundException.cs
- ByteRangeDownloader.cs
- Missing.cs
- ZipIORawDataFileBlock.cs
- CryptoStream.cs
- FontFamilyConverter.cs
- EpmSourceTree.cs
- WebHostUnsafeNativeMethods.cs
- FactoryId.cs
- _ConnectionGroup.cs
- PersonalizationState.cs
- SingleObjectCollection.cs
- ProcessInfo.cs
- ByteArrayHelperWithString.cs
- DefaultPrintController.cs
- Transform.cs
- PromptStyle.cs
- HybridDictionary.cs
- WebPartEditorCancelVerb.cs
- HttpSysSettings.cs
- ToolboxComponentsCreatedEventArgs.cs
- ListControlStringCollectionEditor.cs
- VisualBasicSettingsConverter.cs
- DataBinder.cs
- RoleGroupCollection.cs
- SmiRequestExecutor.cs
- FramingDecoders.cs
- ProfileGroupSettings.cs
- NativeMethodsCLR.cs
- DebugView.cs
- RandomNumberGenerator.cs
- ECDsa.cs
- WebBrowserProgressChangedEventHandler.cs
- XPathNode.cs
- ImageDesigner.cs
- SingleConverter.cs
- HttpCapabilitiesBase.cs
- QueryOperationResponseOfT.cs
- RenderData.cs
- PrintControllerWithStatusDialog.cs
- ValidationPropertyAttribute.cs
- PersonalizablePropertyEntry.cs
- CorruptingExceptionCommon.cs
- LocalizableResourceBuilder.cs
- FeatureSupport.cs
- QueryContinueDragEvent.cs
- CredentialCache.cs
- DebugView.cs
- TextElementEnumerator.cs
- MergeFilterQuery.cs
- DataStorage.cs
- TypeToken.cs