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
- UrlPath.cs
- DesignTimeData.cs
- Pair.cs
- HebrewNumber.cs
- FixedLineResult.cs
- CommonObjectSecurity.cs
- EtwTrackingBehaviorElement.cs
- COM2Properties.cs
- Control.cs
- WaitForChangedResult.cs
- AttributeExtensions.cs
- SrgsDocument.cs
- OutputCacheSection.cs
- TargetParameterCountException.cs
- FontFamilyIdentifier.cs
- StandardOleMarshalObject.cs
- StyleBamlRecordReader.cs
- OdbcInfoMessageEvent.cs
- xml.cs
- DiagnosticTrace.cs
- LocalizationParserHooks.cs
- InProcStateClientManager.cs
- printdlgexmarshaler.cs
- RegexCharClass.cs
- ImmComposition.cs
- Compiler.cs
- TemplateBindingExtension.cs
- BypassElementCollection.cs
- MobileListItem.cs
- MD5HashHelper.cs
- Validator.cs
- LocatorPart.cs
- RenderData.cs
- ContentPresenter.cs
- EnvironmentPermission.cs
- AspNetSynchronizationContext.cs
- WinFormsUtils.cs
- LinkUtilities.cs
- Preprocessor.cs
- CollectionConverter.cs
- AttributeConverter.cs
- AsyncResult.cs
- DataProviderNameConverter.cs
- Visual3D.cs
- StaticSiteMapProvider.cs
- SetStateDesigner.cs
- SecurityKeyUsage.cs
- RowToFieldTransformer.cs
- PageAdapter.cs
- TimeSpanStorage.cs
- AccessibilityApplicationManager.cs
- BoundPropertyEntry.cs
- InvalidAsynchronousStateException.cs
- DesignerCategoryAttribute.cs
- ToolStripContainer.cs
- QilVisitor.cs
- ParsedAttributeCollection.cs
- __ConsoleStream.cs
- ObjectKeyFrameCollection.cs
- KeyManager.cs
- Point3DKeyFrameCollection.cs
- ParentControlDesigner.cs
- DataGridViewCellStyleChangedEventArgs.cs
- DispatchChannelSink.cs
- ClientTarget.cs
- COM2Enum.cs
- UriParserTemplates.cs
- ClockController.cs
- ObjectViewListener.cs
- JournalNavigationScope.cs
- CommandField.cs
- FrameworkElement.cs
- WeakReadOnlyCollection.cs
- HttpWrapper.cs
- CircleHotSpot.cs
- TailPinnedEventArgs.cs
- XmlExtensionFunction.cs
- TreeNodeClickEventArgs.cs
- __FastResourceComparer.cs
- HealthMonitoringSectionHelper.cs
- ExtentCqlBlock.cs
- CatalogZone.cs
- TextRangeEditTables.cs
- ChangePassword.cs
- IntellisenseTextBox.cs
- QueueProcessor.cs
- StyleSheetDesigner.cs
- RawKeyboardInputReport.cs
- MarginCollapsingState.cs
- ComponentEditorPage.cs
- DiscoveryDocumentLinksPattern.cs
- ButtonDesigner.cs
- EventOpcode.cs
- Stackframe.cs
- SqlDataSourceQuery.cs
- DataSourceCache.cs
- CustomAttributeBuilder.cs
- PathFigureCollection.cs
- ToolboxCategory.cs
- IConvertible.cs