Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlNodeList.cs
- DataSourceHelper.cs
- PersonalizationDictionary.cs
- SessionConnectionReader.cs
- connectionpool.cs
- GridViewRowEventArgs.cs
- ConcurrentStack.cs
- CodeTypeParameterCollection.cs
- CatalogZone.cs
- BuildProviderCollection.cs
- _ConnectStream.cs
- ExceptionRoutedEventArgs.cs
- InputProcessorProfilesLoader.cs
- RuntimeTrackingProfile.cs
- HttpProxyCredentialType.cs
- PathGradientBrush.cs
- MimeTypeMapper.cs
- DESCryptoServiceProvider.cs
- ScrollPattern.cs
- FrameDimension.cs
- CompModSwitches.cs
- InstanceHandleConflictException.cs
- AsyncPostBackTrigger.cs
- SystemResourceKey.cs
- Rfc2898DeriveBytes.cs
- WebPartChrome.cs
- ControlAdapter.cs
- View.cs
- UnknownBitmapDecoder.cs
- ServerValidateEventArgs.cs
- LateBoundBitmapDecoder.cs
- ToolboxDataAttribute.cs
- Int16Storage.cs
- GeneratedContractType.cs
- NativeObjectSecurity.cs
- CorrelationRequestContext.cs
- IdentitySection.cs
- DocumentSchemaValidator.cs
- TypeLibConverter.cs
- UnsafeCollabNativeMethods.cs
- MissingManifestResourceException.cs
- TargetConverter.cs
- MediaPlayer.cs
- OdbcPermission.cs
- DeobfuscatingStream.cs
- UriExt.cs
- QuadraticBezierSegment.cs
- AdornedElementPlaceholder.cs
- ACL.cs
- WebZoneDesigner.cs
- OperandQuery.cs
- GeneralTransform3DTo2D.cs
- MonthChangedEventArgs.cs
- RectAnimation.cs
- Attributes.cs
- IsolatedStorageException.cs
- DemultiplexingClientMessageFormatter.cs
- InputElement.cs
- CodeStatement.cs
- DataErrorValidationRule.cs
- WebCodeGenerator.cs
- AccessorTable.cs
- BindToObject.cs
- XmlDigitalSignatureProcessor.cs
- InkSerializer.cs
- SafeNativeMethods.cs
- Color.cs
- ProviderSettingsCollection.cs
- HostingEnvironment.cs
- TagPrefixCollection.cs
- xmlsaver.cs
- StrokeSerializer.cs
- updatecommandorderer.cs
- AsnEncodedData.cs
- IdentitySection.cs
- SystemIPv4InterfaceProperties.cs
- LogWriteRestartAreaAsyncResult.cs
- ElementNotAvailableException.cs
- UserNamePasswordServiceCredential.cs
- TypefaceMap.cs
- CodeValidator.cs
- AnimationTimeline.cs
- AndMessageFilterTable.cs
- ArrayWithOffset.cs
- NavigationEventArgs.cs
- DataGridViewColumnHeaderCell.cs
- XmlSerializationGeneratedCode.cs
- ProtocolElement.cs
- AttachmentService.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- WorkflowPersistenceContext.cs
- SqlReferenceCollection.cs
- PngBitmapDecoder.cs
- PolyLineSegment.cs
- SystemIPAddressInformation.cs
- AmbiguousMatchException.cs
- Parallel.cs
- ValidationPropertyAttribute.cs
- PageCatalogPartDesigner.cs
- EventSinkHelperWriter.cs