Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / RunInstallerAttribute.cs / 1305376 / 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SemanticResolver.cs
- EdmSchemaError.cs
- AttributeEmitter.cs
- DataGridLinkButton.cs
- HwndAppCommandInputProvider.cs
- NativeMethods.cs
- LocalizationParserHooks.cs
- SqlTypeSystemProvider.cs
- Html32TextWriter.cs
- AdapterDictionary.cs
- ImageSourceValueSerializer.cs
- FrameworkElementAutomationPeer.cs
- AvTraceFormat.cs
- WCFServiceClientProxyGenerator.cs
- ByteStreamGeometryContext.cs
- List.cs
- SchemaSetCompiler.cs
- SHA1Cng.cs
- ConnectionStringSettings.cs
- XmlAttributes.cs
- TaskExtensions.cs
- HttpSocketManager.cs
- ExpressionBuilderContext.cs
- XMLSyntaxException.cs
- ListSourceHelper.cs
- NetworkCredential.cs
- ClockController.cs
- WindowVisualStateTracker.cs
- NegationPusher.cs
- ListBase.cs
- GAC.cs
- PrePostDescendentsWalker.cs
- FactoryId.cs
- TreeViewImageGenerator.cs
- XPathAncestorQuery.cs
- DictionarySectionHandler.cs
- XmlSchemaObjectTable.cs
- Registry.cs
- InputChannelAcceptor.cs
- BackgroundFormatInfo.cs
- SegmentInfo.cs
- StaticExtensionConverter.cs
- ContainerParaClient.cs
- TextEndOfParagraph.cs
- TreeNodeStyle.cs
- TdsParameterSetter.cs
- StorageMappingItemCollection.cs
- FileAuthorizationModule.cs
- DataServiceStreamProviderWrapper.cs
- ReaderWriterLock.cs
- SiteMapHierarchicalDataSourceView.cs
- ContentElement.cs
- XmlEncApr2001.cs
- JsonGlobals.cs
- DataGridCaption.cs
- QueryRelOp.cs
- QueryAccessibilityHelpEvent.cs
- UInt32.cs
- InstalledVoice.cs
- AsymmetricSignatureFormatter.cs
- ResolveMatchesMessage11.cs
- UpdateProgress.cs
- RuleDefinitions.cs
- Size3DValueSerializer.cs
- UIElementParagraph.cs
- TiffBitmapDecoder.cs
- DoubleCollection.cs
- XmlObjectSerializerReadContextComplexJson.cs
- GlobalId.cs
- SqlBooleanMismatchVisitor.cs
- HttpValueCollection.cs
- EventsTab.cs
- SystemIcons.cs
- SmiContext.cs
- AsyncStreamReader.cs
- TextServicesManager.cs
- SafeCryptContextHandle.cs
- InstanceDataCollectionCollection.cs
- SchemaSetCompiler.cs
- Rotation3DAnimationUsingKeyFrames.cs
- XmlCountingReader.cs
- StylusButtonCollection.cs
- JoinSymbol.cs
- ConnectionStringsExpressionBuilder.cs
- ClientConvert.cs
- XhtmlBasicPanelAdapter.cs
- SubMenuStyle.cs
- MediaPlayerState.cs
- SessionPageStateSection.cs
- SmtpClient.cs
- ConfigXmlSignificantWhitespace.cs
- DetailsViewDeleteEventArgs.cs
- SqlCommand.cs
- DesigntimeLicenseContextSerializer.cs
- RegionIterator.cs
- ContextQuery.cs
- CustomExpression.cs
- DocumentSequenceHighlightLayer.cs
- MdImport.cs
- XmlSignatureManifest.cs