Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- XmlSchemaAnyAttribute.cs
- BindStream.cs
- ConstructorBuilder.cs
- InfoCardProofToken.cs
- TextBoxBase.cs
- SemanticAnalyzer.cs
- SessionState.cs
- GenerateTemporaryTargetAssembly.cs
- BindingGroup.cs
- SafeNativeMemoryHandle.cs
- HwndProxyElementProvider.cs
- SigningCredentials.cs
- DataSourceExpression.cs
- PathStreamGeometryContext.cs
- SecurityException.cs
- BitmapCache.cs
- XmlILConstructAnalyzer.cs
- XPathSelfQuery.cs
- SetStoryboardSpeedRatio.cs
- SettingsProviderCollection.cs
- RegexStringValidator.cs
- SqlBuilder.cs
- RuntimeResourceSet.cs
- RegexMatchCollection.cs
- BitmapPalette.cs
- BinaryQueryOperator.cs
- ParagraphResult.cs
- SecurityHelper.cs
- CustomWebEventKey.cs
- EntityDataSourceMemberPath.cs
- LinkClickEvent.cs
- PointKeyFrameCollection.cs
- TempFiles.cs
- ListItemConverter.cs
- TableLayout.cs
- EditorPartChrome.cs
- Matrix3DStack.cs
- WinEventQueueItem.cs
- FunctionQuery.cs
- x509utils.cs
- ScrollPattern.cs
- GeometryGroup.cs
- ExpandSegmentCollection.cs
- AutomationEvent.cs
- DeclarativeConditionsCollection.cs
- ExpressionBuilder.cs
- DataTableMapping.cs
- XmlBinaryReader.cs
- XmlSchemaDocumentation.cs
- PrimitiveXmlSerializers.cs
- ManipulationInertiaStartingEventArgs.cs
- DependencyPropertyKey.cs
- DiscriminatorMap.cs
- _ListenerRequestStream.cs
- BulletChrome.cs
- EventManager.cs
- PolyBezierSegment.cs
- WizardPanel.cs
- ZipIOLocalFileDataDescriptor.cs
- ObjectListShowCommandsEventArgs.cs
- TdsParser.cs
- GraphicsContainer.cs
- BamlRecordHelper.cs
- MissingFieldException.cs
- XmlWriter.cs
- LinkConverter.cs
- XmlEventCache.cs
- ComPlusDiagnosticTraceRecords.cs
- Attributes.cs
- SoapDocumentMethodAttribute.cs
- CssTextWriter.cs
- CroppedBitmap.cs
- KeysConverter.cs
- HandlerFactoryWrapper.cs
- Internal.cs
- BitStack.cs
- __Filters.cs
- SettingsAttributeDictionary.cs
- SecurityResources.cs
- Funcletizer.cs
- ItemCheckEvent.cs
- JournalEntryListConverter.cs
- SettingsBindableAttribute.cs
- Helper.cs
- DateTimeOffset.cs
- InternalConfigHost.cs
- __Filters.cs
- XPathNode.cs
- XamlVector3DCollectionSerializer.cs
- Journal.cs
- ColumnResult.cs
- Itemizer.cs
- HelloMessageApril2005.cs
- OperationFormatStyle.cs
- TypeUnloadedException.cs
- DNS.cs
- FixedSOMTextRun.cs
- DataGridViewDataConnection.cs
- Mappings.cs
- ManualResetEvent.cs