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
- WindowsListViewScroll.cs
- UriExt.cs
- UnionExpr.cs
- MultiTrigger.cs
- QueryCacheEntry.cs
- MdImport.cs
- WmpBitmapDecoder.cs
- DataGridViewElement.cs
- BooleanExpr.cs
- ObjectDataSourceDisposingEventArgs.cs
- COM2IPerPropertyBrowsingHandler.cs
- InfoCardClaimCollection.cs
- MasterPage.cs
- EventWaitHandleSecurity.cs
- SafeNativeMethods.cs
- ReadOnlyTernaryTree.cs
- VirtualPath.cs
- UrlPath.cs
- ConvertEvent.cs
- PerformanceCountersElement.cs
- OptimalTextSource.cs
- SpeechSeg.cs
- Serializer.cs
- ScriptingProfileServiceSection.cs
- CodeIndexerExpression.cs
- Codec.cs
- AppManager.cs
- EncoderParameters.cs
- IConvertible.cs
- TypedServiceChannelBuilder.cs
- sqlnorm.cs
- HeaderPanel.cs
- TreeNode.cs
- ReturnEventArgs.cs
- Rect3DConverter.cs
- glyphs.cs
- ConfigXmlAttribute.cs
- DataServiceResponse.cs
- XmlAttributeCache.cs
- Error.cs
- CompositeActivityMarkupSerializer.cs
- CodeTypeDeclaration.cs
- ItemDragEvent.cs
- CollectionEditor.cs
- HtmlEncodedRawTextWriter.cs
- ValueSerializerAttribute.cs
- PersistenceMetadataNamespace.cs
- ConfigurationManagerHelperFactory.cs
- StandardOleMarshalObject.cs
- CompModSwitches.cs
- DataGridViewElement.cs
- EDesignUtil.cs
- OLEDB_Util.cs
- MenuAutomationPeer.cs
- WinFormsSecurity.cs
- SubclassTypeValidatorAttribute.cs
- AppDomainFactory.cs
- UrlMappingsModule.cs
- ToolStripMenuItem.cs
- DynamicResourceExtension.cs
- regiisutil.cs
- ManifestSignatureInformation.cs
- RegionInfo.cs
- DelegatedStream.cs
- RemoteWebConfigurationHostStream.cs
- BrowserCapabilitiesFactory.cs
- AutomationProperties.cs
- Constraint.cs
- NamespaceEmitter.cs
- CompoundFileStorageReference.cs
- XmlDataContract.cs
- VectorCollectionConverter.cs
- ServiceOperationListItemList.cs
- TemplateAction.cs
- InvalidOleVariantTypeException.cs
- LockedHandleGlyph.cs
- LoginName.cs
- WebPartVerb.cs
- SelectionEditingBehavior.cs
- DictionaryMarkupSerializer.cs
- GridEntryCollection.cs
- DBSchemaTable.cs
- HttpCacheParams.cs
- DesignerAdRotatorAdapter.cs
- ZipIOExtraField.cs
- CompModSwitches.cs
- CssTextWriter.cs
- PhysicalAddress.cs
- Clipboard.cs
- ThreadExceptionEvent.cs
- SettingsPropertyNotFoundException.cs
- XmlHierarchyData.cs
- StreamAsIStream.cs
- XmlStreamedByteStreamReader.cs
- SoapObjectReader.cs
- CollectionEditVerbManager.cs
- LinqDataSourceStatusEventArgs.cs
- CodeGenerator.cs
- FileSystemEventArgs.cs
- FormsAuthentication.cs