Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- GB18030Encoding.cs
- Match.cs
- CustomLineCap.cs
- BoundColumn.cs
- PersonalizationState.cs
- SslStream.cs
- DynamicDocumentPaginator.cs
- XmlUrlResolver.cs
- FixedPosition.cs
- SafeProcessHandle.cs
- ToolStripPanelRow.cs
- CodeSnippetCompileUnit.cs
- PropertyTabChangedEvent.cs
- SID.cs
- XpsFilter.cs
- SafeMILHandle.cs
- ControlAdapter.cs
- DrawListViewItemEventArgs.cs
- _ChunkParse.cs
- SqlInfoMessageEvent.cs
- DurableMessageDispatchInspector.cs
- ChtmlTextBoxAdapter.cs
- AnnotationComponentChooser.cs
- AppDomainFactory.cs
- Number.cs
- EventMetadata.cs
- XmlILTrace.cs
- ProjectionNode.cs
- GridViewUpdateEventArgs.cs
- NamespaceCollection.cs
- AjaxFrameworkAssemblyAttribute.cs
- Or.cs
- DSASignatureFormatter.cs
- ApplicationException.cs
- ImageSourceValueSerializer.cs
- EventData.cs
- cookiecontainer.cs
- EarlyBoundInfo.cs
- EmptyElement.cs
- WebBrowserPermission.cs
- HtmlFormParameterReader.cs
- XmlUtil.cs
- MetadataConversionError.cs
- Quaternion.cs
- PropertyPathConverter.cs
- XmlSchemaImporter.cs
- UxThemeWrapper.cs
- PolyLineSegment.cs
- DecoderBestFitFallback.cs
- Transform.cs
- XmlnsCache.cs
- mediapermission.cs
- AccessedThroughPropertyAttribute.cs
- LinkClickEvent.cs
- ButtonFlatAdapter.cs
- DynamicDataResources.Designer.cs
- Double.cs
- BitStream.cs
- OrderByLifter.cs
- ConstantCheck.cs
- TextParaClient.cs
- ThreadLocal.cs
- safemediahandle.cs
- securitycriticaldataClass.cs
- XmlILModule.cs
- ColumnResizeUndoUnit.cs
- SpecialTypeDataContract.cs
- RtfToken.cs
- listitem.cs
- EncoderParameters.cs
- TimeoutException.cs
- SecureUICommand.cs
- EntityModelSchemaGenerator.cs
- LongSumAggregationOperator.cs
- SqlRetyper.cs
- ConnectionInterfaceCollection.cs
- DataRow.cs
- ClientTarget.cs
- Debug.cs
- WhiteSpaceTrimStringConverter.cs
- Merger.cs
- CodeObject.cs
- InstanceHandleConflictException.cs
- DataTableMappingCollection.cs
- UpdatePanelControlTrigger.cs
- ValueUnavailableException.cs
- VirtualPathProvider.cs
- FunctionDefinition.cs
- _AcceptOverlappedAsyncResult.cs
- SafeThreadHandle.cs
- ResourceContainer.cs
- DependencySource.cs
- ResourceType.cs
- unsafenativemethodstextservices.cs
- WebPartEditorCancelVerb.cs
- TrackingWorkflowEventArgs.cs
- StandardTransformFactory.cs
- BasicViewGenerator.cs
- InitializationEventAttribute.cs
- Region.cs