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
- IgnoreDeviceFilterElementCollection.cs
- ActivityXamlServices.cs
- BigInt.cs
- DiscoveryService.cs
- OracleDataAdapter.cs
- CancellationTokenRegistration.cs
- DelegatingTypeDescriptionProvider.cs
- RangeValidator.cs
- BindingRestrictions.cs
- OdbcEnvironment.cs
- Application.cs
- BindingExpressionUncommonField.cs
- Stroke2.cs
- LOSFormatter.cs
- DataSourceSelectArguments.cs
- X509Utils.cs
- BinaryExpression.cs
- EncoderExceptionFallback.cs
- SdlChannelSink.cs
- MessageSmuggler.cs
- RtfControlWordInfo.cs
- VirtualizedItemPattern.cs
- Constant.cs
- RenderContext.cs
- DrawListViewColumnHeaderEventArgs.cs
- FixedBufferAttribute.cs
- XmlSerializerVersionAttribute.cs
- ObjectQueryState.cs
- CipherData.cs
- PublisherIdentityPermission.cs
- TableRowCollection.cs
- DataSourceUtil.cs
- Win32.cs
- PaintEvent.cs
- HtmlEncodedRawTextWriter.cs
- shaperfactoryquerycachekey.cs
- SQLByte.cs
- HttpDebugHandler.cs
- NameNode.cs
- ConfigXmlText.cs
- AspNetCompatibilityRequirementsAttribute.cs
- ImageListImage.cs
- formatter.cs
- BitmapFrameEncode.cs
- CurrentTimeZone.cs
- HotSpotCollection.cs
- DataGridColumn.cs
- Compensate.cs
- StringPropertyBuilder.cs
- SourceFilter.cs
- ListDictionary.cs
- XmlDataLoader.cs
- TcpDuplicateContext.cs
- QueryLifecycle.cs
- ItemsPresenter.cs
- Zone.cs
- __Error.cs
- AttachmentCollection.cs
- TableAdapterManagerGenerator.cs
- webproxy.cs
- LocationReference.cs
- XamlToRtfWriter.cs
- FontCacheUtil.cs
- QilIterator.cs
- DependencyObjectPropertyDescriptor.cs
- LogicalCallContext.cs
- BindingContext.cs
- SymbolTable.cs
- Util.cs
- DynamicDocumentPaginator.cs
- Overlapped.cs
- ServiceReference.cs
- ThousandthOfEmRealDoubles.cs
- TypeSystem.cs
- SweepDirectionValidation.cs
- DataRecordInternal.cs
- elementinformation.cs
- SectionVisual.cs
- Section.cs
- UpdatePanelTrigger.cs
- SafeUserTokenHandle.cs
- XmlMapping.cs
- CapabilitiesState.cs
- LineBreakRecord.cs
- Int64.cs
- TrackingLocationCollection.cs
- TableLayoutColumnStyleCollection.cs
- XmlSchemaSimpleContent.cs
- MemberDescriptor.cs
- _ListenerRequestStream.cs
- EmbeddedMailObjectsCollection.cs
- StaticResourceExtension.cs
- ProxySimple.cs
- PointHitTestParameters.cs
- MdImport.cs
- WCFModelStrings.Designer.cs
- StandardToolWindows.cs
- HttpDebugHandler.cs
- TransmissionStrategy.cs
- WebControlParameterProxy.cs