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
- Operator.cs
- ToolStripRenderer.cs
- QuaternionRotation3D.cs
- ConfigUtil.cs
- ObjectTag.cs
- DbProviderConfigurationHandler.cs
- Run.cs
- GreenMethods.cs
- SvcMapFileSerializer.cs
- JsonFormatGeneratorStatics.cs
- ParameterCollection.cs
- ChtmlTextWriter.cs
- DataServiceExpressionVisitor.cs
- LifetimeServices.cs
- ExceptionHelpers.cs
- LineGeometry.cs
- SqlCacheDependencyDatabaseCollection.cs
- WindowsFormsHost.cs
- ToolStripHighContrastRenderer.cs
- CharacterBufferReference.cs
- MemberDomainMap.cs
- ArcSegment.cs
- SyntaxCheck.cs
- URLMembershipCondition.cs
- SystemResources.cs
- TTSEngineTypes.cs
- XmlTextReaderImpl.cs
- DebuggerAttributes.cs
- Visual.cs
- AutoSizeComboBox.cs
- TableLayoutColumnStyleCollection.cs
- EncryptedPackageFilter.cs
- WorkflowMarkupSerializationException.cs
- ContentPlaceHolder.cs
- WindowsTab.cs
- OperandQuery.cs
- MsdtcClusterUtils.cs
- AssemblyAttributes.cs
- QueryOutputWriter.cs
- DataSysAttribute.cs
- SqlReferenceCollection.cs
- MailFileEditor.cs
- PropertySet.cs
- MaxMessageSizeStream.cs
- ReadOnlyObservableCollection.cs
- VirtualDirectoryMapping.cs
- InvalidDataException.cs
- ConfigurationElement.cs
- UnrecognizedAssertionsBindingElement.cs
- LongTypeConverter.cs
- PhonemeEventArgs.cs
- SafeNativeMethods.cs
- UpdatableWrapper.cs
- XmlAttributes.cs
- ContextStaticAttribute.cs
- CalendarDesigner.cs
- MaskedTextBox.cs
- IncrementalHitTester.cs
- ZipFileInfoCollection.cs
- AsymmetricKeyExchangeFormatter.cs
- DiscreteKeyFrames.cs
- AdapterUtil.cs
- NamedPipeAppDomainProtocolHandler.cs
- GeometryCollection.cs
- WebPartConnection.cs
- BaseDataList.cs
- SerializationException.cs
- securestring.cs
- TextEffectResolver.cs
- SQlBooleanStorage.cs
- XsdBuildProvider.cs
- CallContext.cs
- BindingMAnagerBase.cs
- MexHttpBindingElement.cs
- Trigger.cs
- TextEffectResolver.cs
- FontStyles.cs
- MemberInfoSerializationHolder.cs
- HttpPostProtocolReflector.cs
- Tablet.cs
- PolyLineSegmentFigureLogic.cs
- IListConverters.cs
- XsdBuildProvider.cs
- VisualTarget.cs
- IconHelper.cs
- HttpRequestContext.cs
- ScriptResourceHandler.cs
- XamlToRtfParser.cs
- EnumerableRowCollection.cs
- RequestResizeEvent.cs
- XsdDuration.cs
- XmlElement.cs
- HtmlHead.cs
- SqlGatherConsumedAliases.cs
- IndexedGlyphRun.cs
- UIInitializationException.cs
- TextDecorationUnitValidation.cs
- TabletCollection.cs
- SortKey.cs
- ReaderContextStackData.cs