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;
///
///
/// Specifies whether an installer should be invoked during
/// installation of an assembly.
///
[AttributeUsage(AttributeTargets.Class)]
public class RunInstallerAttribute : Attribute {
private bool runInstaller;
///
///
///
/// Initializes a new instance of
/// the class.
///
///
public RunInstallerAttribute(bool runInstaller) {
this.runInstaller = runInstaller;
}
///
///
///
/// Gets a value indicating whether an installer should be
/// invoked during installation of an assembly.
///
///
public bool RunInstaller {
get {
return runInstaller;
}
}
///
///
///
/// Specifies that a
/// component is visible in a visual designer. This field is
/// read-only.
///
///
public static readonly RunInstallerAttribute Yes = new RunInstallerAttribute(true);
///
///
///
/// Specifies that a
/// component
/// is not visible in a visual designer. This field is
/// read-only.
///
///
public static readonly RunInstallerAttribute No = new RunInstallerAttribute(false);
///
///
///
/// Specifies the default visiblity, which is . This field is
/// read-only.
///
///
public static readonly RunInstallerAttribute Default = No;
///
///
///
///
public override bool Equals(object obj) {
if (obj == this) {
return true;
}
RunInstallerAttribute other = obj as RunInstallerAttribute;
return other != null && other.RunInstaller == runInstaller;
}
///
///
///
/// Returns the hashcode for this object.
///
///
public override int GetHashCode() {
return base.GetHashCode();
}
///
///
///
///
public override bool IsDefaultAttribute() {
return (this.Equals(Default));
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ScriptControlDescriptor.cs
- IdlingCommunicationPool.cs
- RenderDataDrawingContext.cs
- Propagator.ExtentPlaceholderCreator.cs
- HeaderUtility.cs
- OperationDescriptionCollection.cs
- DateTimeConverter.cs
- SchemaHelper.cs
- SafeNativeMemoryHandle.cs
- ImmutableDispatchRuntime.cs
- GlobalizationSection.cs
- WinFormsSpinner.cs
- UnsafeNativeMethods.cs
- EntitySqlException.cs
- RelatedCurrencyManager.cs
- EncoderFallback.cs
- PolyLineSegment.cs
- SupportsPreviewControlAttribute.cs
- DataGridViewSelectedRowCollection.cs
- MarginsConverter.cs
- regiisutil.cs
- GridViewRowCollection.cs
- BitHelper.cs
- LZCodec.cs
- DEREncoding.cs
- DataGridViewLinkColumn.cs
- Select.cs
- ContentElementAutomationPeer.cs
- TrustLevelCollection.cs
- WindowProviderWrapper.cs
- SplineQuaternionKeyFrame.cs
- LocalizedNameDescriptionPair.cs
- CollaborationHelperFunctions.cs
- ApplicationTrust.cs
- VirtualizingPanel.cs
- LoadWorkflowCommand.cs
- VBIdentifierTrimConverter.cs
- TableRow.cs
- SpeechDetectedEventArgs.cs
- CustomErrorsSection.cs
- DateTimeFormat.cs
- RelationshipDetailsCollection.cs
- BitmapSizeOptions.cs
- XsdDuration.cs
- FontFaceLayoutInfo.cs
- MimeBasePart.cs
- EtwTrace.cs
- PaintEvent.cs
- CaseInsensitiveComparer.cs
- XXXInfos.cs
- ListViewUpdatedEventArgs.cs
- RectangleHotSpot.cs
- ConnectionProviderAttribute.cs
- XmlElementAttribute.cs
- ResourceReader.cs
- EntityContainerAssociationSet.cs
- PrincipalPermission.cs
- EncodingStreamWrapper.cs
- _NativeSSPI.cs
- StringToken.cs
- DateTimeFormat.cs
- SHA1CryptoServiceProvider.cs
- RegistrySecurity.cs
- webproxy.cs
- nulltextnavigator.cs
- DeflateStream.cs
- Set.cs
- DocumentGrid.cs
- OleDbRowUpdatingEvent.cs
- BindingListCollectionView.cs
- ObjectStateManager.cs
- URL.cs
- Descriptor.cs
- WebPartsSection.cs
- OneWayBindingElement.cs
- ButtonColumn.cs
- LocationEnvironment.cs
- RewritingValidator.cs
- AdRotator.cs
- Pair.cs
- DynamicRendererThreadManager.cs
- FocusWithinProperty.cs
- SettingsProperty.cs
- SerializableAttribute.cs
- QueryOutputWriter.cs
- Typography.cs
- RichTextBoxConstants.cs
- ExecutionEngineException.cs
- MultiBinding.cs
- CustomAssemblyResolver.cs
- DbProviderFactoriesConfigurationHandler.cs
- IndexerReference.cs
- FormViewModeEventArgs.cs
- PenContexts.cs
- XamlFigureLengthSerializer.cs
- BoundColumn.cs
- MeasurementDCInfo.cs
- Token.cs
- ListView.cs
- RtfControls.cs