Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- TextBox.cs
- LayoutUtils.cs
- UIPermission.cs
- BorderSidesEditor.cs
- ElementProxy.cs
- CollectionViewGroupInternal.cs
- AssertFilter.cs
- WinEventTracker.cs
- WasHostedComPlusFactory.cs
- CodeDomExtensionMethods.cs
- OleStrCAMarshaler.cs
- Random.cs
- HttpApplication.cs
- CommonObjectSecurity.cs
- DataGridItemCollection.cs
- ContextConfiguration.cs
- Predicate.cs
- Animatable.cs
- ParallelDesigner.cs
- DocumentXPathNavigator.cs
- SqlVersion.cs
- ExpandSegment.cs
- PathFigureCollection.cs
- FileDetails.cs
- VisualStyleRenderer.cs
- XmlCollation.cs
- FontStretches.cs
- PartialCachingAttribute.cs
- Transform.cs
- CodeExporter.cs
- PersonalizationAdministration.cs
- PageBuildProvider.cs
- XPathException.cs
- DeferredReference.cs
- TextCompositionManager.cs
- SafeThreadHandle.cs
- ReceiveActivityValidator.cs
- SafeSecurityHandles.cs
- SafeNativeMethods.cs
- XmlValueConverter.cs
- RemoteWebConfigurationHostServer.cs
- TokenBasedSet.cs
- LayoutInformation.cs
- Native.cs
- SyndicationFeed.cs
- ScrollBarRenderer.cs
- ObjectStateFormatter.cs
- NestedContainer.cs
- Scene3D.cs
- XPathConvert.cs
- AnnotationHelper.cs
- FtpWebResponse.cs
- VectorCollectionValueSerializer.cs
- Timer.cs
- ProtocolImporter.cs
- NameSpaceExtractor.cs
- ListenerElementsCollection.cs
- PerfCounterSection.cs
- ListItemsPage.cs
- ParameterCollection.cs
- ParserStack.cs
- MenuItem.cs
- RoutedEventValueSerializer.cs
- PropertyDescriptorCollection.cs
- HtmlPageAdapter.cs
- TimeoutValidationAttribute.cs
- BulletedList.cs
- Translator.cs
- Grant.cs
- FrameworkTextComposition.cs
- PatternMatcher.cs
- DataKey.cs
- CodeDOMProvider.cs
- InheritanceUI.cs
- ProfileEventArgs.cs
- DataRelation.cs
- ResourcePart.cs
- EntityCodeGenerator.cs
- BuildResultCache.cs
- FlowDocumentView.cs
- TextReader.cs
- LocalizationParserHooks.cs
- ParallelEnumerableWrapper.cs
- TypeContext.cs
- CodeTypeDelegate.cs
- FormsAuthenticationCredentials.cs
- IntegerValidator.cs
- InkCanvas.cs
- AnimatedTypeHelpers.cs
- Point3D.cs
- EventLogEntry.cs
- ComponentConverter.cs
- DecimalAnimationUsingKeyFrames.cs
- WrappedReader.cs
- ConfigUtil.cs
- ConvertEvent.cs
- NavigatorInput.cs
- PartBasedPackageProperties.cs
- UnionCqlBlock.cs
- ScriptRegistrationManager.cs