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
- StatusBarItemAutomationPeer.cs
- EdmSchemaError.cs
- NavigationWindow.cs
- KnownTypes.cs
- RoutedEventHandlerInfo.cs
- ChannelFactory.cs
- RtfNavigator.cs
- SourceItem.cs
- MailBnfHelper.cs
- AccessDataSource.cs
- SpnEndpointIdentityExtension.cs
- FontDifferentiator.cs
- SortQuery.cs
- SetterBaseCollection.cs
- MediaContextNotificationWindow.cs
- TextRenderer.cs
- TransformerInfo.cs
- DomNameTable.cs
- Rule.cs
- SR.cs
- BulletChrome.cs
- RadioButton.cs
- ZipArchive.cs
- FixedHyperLink.cs
- CngAlgorithmGroup.cs
- CallContext.cs
- SecurityKeyType.cs
- CodeGotoStatement.cs
- ConversionHelper.cs
- DataGridViewCellStyleChangedEventArgs.cs
- RowToParametersTransformer.cs
- BinaryMessageFormatter.cs
- HostingEnvironmentSection.cs
- CommandDevice.cs
- AnnotationService.cs
- LayoutTableCell.cs
- FtpRequestCacheValidator.cs
- SqlRowUpdatingEvent.cs
- SQLBinaryStorage.cs
- HttpStreamFormatter.cs
- SessionIDManager.cs
- RuleSetReference.cs
- SchemaInfo.cs
- DbDataReader.cs
- EnumType.cs
- Msec.cs
- SqlRecordBuffer.cs
- XmlArrayItemAttributes.cs
- SqlDesignerDataSourceView.cs
- ImageButton.cs
- BinaryCommonClasses.cs
- ToolStripRenderEventArgs.cs
- RootProfilePropertySettingsCollection.cs
- ThreadExceptionDialog.cs
- RSAPKCS1SignatureFormatter.cs
- CommentEmitter.cs
- TextRunTypographyProperties.cs
- XmlnsCache.cs
- DataFieldConverter.cs
- HtmlLink.cs
- UIAgentAsyncEndRequest.cs
- ImageDrawing.cs
- CodeDelegateInvokeExpression.cs
- WebPartConnectionsDisconnectVerb.cs
- SHA1CryptoServiceProvider.cs
- ObjectContext.cs
- CdpEqualityComparer.cs
- ProgressPage.cs
- ProxySimple.cs
- CustomCategoryAttribute.cs
- Matrix.cs
- UserNameSecurityTokenParameters.cs
- FullTextLine.cs
- CompiledELinqQueryState.cs
- WorkflowRuntimeSection.cs
- EdmItemError.cs
- RNGCryptoServiceProvider.cs
- ValidatingReaderNodeData.cs
- ColumnMapCopier.cs
- XmlSignificantWhitespace.cs
- OdbcDataAdapter.cs
- ProtocolsConfigurationHandler.cs
- LayoutManager.cs
- SqlTypesSchemaImporter.cs
- FigureHelper.cs
- EndpointDispatcher.cs
- SqlNamer.cs
- Int64AnimationBase.cs
- InputScopeNameConverter.cs
- SvcFileManager.cs
- objectquery_tresulttype.cs
- OdbcConnection.cs
- MarkerProperties.cs
- RectangleHotSpot.cs
- ButtonField.cs
- DataTemplate.cs
- Positioning.cs
- dataprotectionpermission.cs
- WebPartCatalogCloseVerb.cs
- PersonalizationProviderCollection.cs