Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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)); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ThumbButtonInfoCollection.cs
- XamlWriter.cs
- AttributeTableBuilder.cs
- NavigationWindow.cs
- OracleTimeSpan.cs
- TerminatingOperationBehavior.cs
- PackageFilter.cs
- PointLightBase.cs
- QilName.cs
- QuerySafeNavigator.cs
- XmlRawWriterWrapper.cs
- HttpCapabilitiesEvaluator.cs
- SimpleRecyclingCache.cs
- PageTextBox.cs
- DataTableMappingCollection.cs
- DataGridCellsPanel.cs
- StateDesignerConnector.cs
- LinqMaximalSubtreeNominator.cs
- MsmqBindingElementBase.cs
- UpdateCompiler.cs
- RawKeyboardInputReport.cs
- ReadOnlyCollectionBase.cs
- ClientTargetSection.cs
- EditingMode.cs
- CqlParserHelpers.cs
- SafeRightsManagementEnvironmentHandle.cs
- Transform3DCollection.cs
- StateItem.cs
- MediaCommands.cs
- ColumnResizeUndoUnit.cs
- TCPClient.cs
- HtmlValidatorAdapter.cs
- DataBindingHandlerAttribute.cs
- WrappedOptions.cs
- SimpleHandlerBuildProvider.cs
- IisTraceListener.cs
- LineProperties.cs
- LogSwitch.cs
- TextPenaltyModule.cs
- ToolBarButtonClickEvent.cs
- DocumentReference.cs
- LazyTextWriterCreator.cs
- InvalidFilterCriteriaException.cs
- NumberFunctions.cs
- DataGridTableCollection.cs
- SHA512Managed.cs
- TreeViewHitTestInfo.cs
- GenericParameterDataContract.cs
- XmlEncoding.cs
- TypedServiceOperationListItem.cs
- SqlDataSourceCommandParser.cs
- FlowDocumentReader.cs
- CustomErrorCollection.cs
- XPathItem.cs
- DocumentXPathNavigator.cs
- QueryableDataSourceHelper.cs
- ScriptingProfileServiceSection.cs
- ParameterCollection.cs
- DelegateBodyWriter.cs
- RecipientInfo.cs
- Annotation.cs
- TransactionScope.cs
- WebAdminConfigurationHelper.cs
- Buffer.cs
- GeneralTransform3D.cs
- Trace.cs
- MenuEventArgs.cs
- XhtmlTextWriter.cs
- ScriptControl.cs
- InputQueue.cs
- SafeEventLogWriteHandle.cs
- DrawingVisualDrawingContext.cs
- Scanner.cs
- SwitchAttribute.cs
- EntityAdapter.cs
- SqlDeflator.cs
- PixelFormats.cs
- FaultHandlingFilter.cs
- FontFamilyIdentifier.cs
- ReflectEventDescriptor.cs
- MergeFailedEvent.cs
- BitStack.cs
- EventOpcode.cs
- SmiTypedGetterSetter.cs
- FunctionCommandText.cs
- UrlPath.cs
- MyContact.cs
- elementinformation.cs
- DefaultAuthorizationContext.cs
- DataFormats.cs
- CustomCredentialPolicy.cs
- ToolStripDropDownClosingEventArgs.cs
- SubqueryRules.cs
- SqlRowUpdatedEvent.cs
- RegisteredExpandoAttribute.cs
- NextPreviousPagerField.cs
- precedingsibling.cs
- ViewPort3D.cs
- FullTextBreakpoint.cs
- ScalarRestriction.cs