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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebEventTraceProvider.cs
- EntityPropertyMappingAttribute.cs
- DbDataSourceEnumerator.cs
- ExceptionValidationRule.cs
- DataGridViewColumnEventArgs.cs
- VectorAnimationBase.cs
- Dynamic.cs
- TextContainerChangedEventArgs.cs
- SvcMapFileLoader.cs
- TextEndOfLine.cs
- DataListItem.cs
- ProcessHostFactoryHelper.cs
- Base64Decoder.cs
- ParallelTimeline.cs
- MessageQueuePermissionEntry.cs
- HttpResponse.cs
- CodeArrayCreateExpression.cs
- SchemaInfo.cs
- TreeIterators.cs
- HwndKeyboardInputProvider.cs
- ToolBar.cs
- ICspAsymmetricAlgorithm.cs
- WmiPutTraceRecord.cs
- DbDataRecord.cs
- PolicyStatement.cs
- Internal.cs
- ContentWrapperAttribute.cs
- XPathDescendantIterator.cs
- PenThread.cs
- CompilerScope.Storage.cs
- EventSinkHelperWriter.cs
- TypeElementCollection.cs
- OdbcEnvironment.cs
- AppSettingsReader.cs
- BrowsableAttribute.cs
- SessionPageStatePersister.cs
- TerminatorSinks.cs
- MergePropertyDescriptor.cs
- SByte.cs
- XmlSchemaFacet.cs
- SqlBuffer.cs
- StorageSetMapping.cs
- NavigationProperty.cs
- SynchronizingStream.cs
- FormsAuthenticationConfiguration.cs
- Activation.cs
- TablePattern.cs
- Item.cs
- GlobalAclOperationRequirement.cs
- BufferedConnection.cs
- TextBox.cs
- System.Data_BID.cs
- ExclusiveHandleList.cs
- remotingproxy.cs
- HttpAsyncResult.cs
- RuleValidation.cs
- LambdaExpression.cs
- DynamicFilter.cs
- XmlNamespaceMapping.cs
- NameValuePermission.cs
- AutomationAttributeInfo.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- BufferedGraphicsManager.cs
- RSAOAEPKeyExchangeFormatter.cs
- _ServiceNameStore.cs
- AutomationInteropProvider.cs
- Matrix3DConverter.cs
- SiteMap.cs
- TrustLevel.cs
- NetworkInformationException.cs
- MiniCustomAttributeInfo.cs
- InputEventArgs.cs
- RowSpanVector.cs
- SafeNativeMethods.cs
- ImageFormat.cs
- OdbcConnectionHandle.cs
- SHA256.cs
- Vector.cs
- SchemaEntity.cs
- ReceiveMessageContent.cs
- SegmentInfo.cs
- DuplexChannelBinder.cs
- DataReaderContainer.cs
- PersonalizationProviderCollection.cs
- SmiGettersStream.cs
- Paragraph.cs
- TransportChannelListener.cs
- ToolStripPanelSelectionGlyph.cs
- SystemUdpStatistics.cs
- StrokeCollection.cs
- BooleanSwitch.cs
- EventData.cs
- GridLength.cs
- XmlElementList.cs
- TextDecorationCollection.cs
- MergablePropertyAttribute.cs
- StreamInfo.cs
- PreservationFileReader.cs
- DesignColumnCollection.cs
- DrawingAttributeSerializer.cs