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
- SemanticResultKey.cs
- ApplicationSecurityManager.cs
- StreamInfo.cs
- ApplicationActivator.cs
- TypeInfo.cs
- DetailsViewUpdatedEventArgs.cs
- Label.cs
- ActivationServices.cs
- CodeTypeConstructor.cs
- XmlIgnoreAttribute.cs
- RefExpr.cs
- NamespaceImport.cs
- TextLineResult.cs
- StateBag.cs
- CheckBoxPopupAdapter.cs
- DispatcherEventArgs.cs
- ValueTypeFixupInfo.cs
- CompiledRegexRunnerFactory.cs
- OdbcEnvironmentHandle.cs
- Root.cs
- ReadOnlyPropertyMetadata.cs
- InspectionWorker.cs
- XPathSelectionIterator.cs
- WorkflowDesigner.cs
- DbDataAdapter.cs
- FamilyTypeface.cs
- ToolboxComponentsCreatedEventArgs.cs
- SqlLiftIndependentRowExpressions.cs
- DefaultObjectMappingItemCollection.cs
- ComplexObject.cs
- ProcessThreadDesigner.cs
- EntityCommandExecutionException.cs
- DbProviderFactoriesConfigurationHandler.cs
- SimpleTextLine.cs
- HtmlTextArea.cs
- DecimalAnimationUsingKeyFrames.cs
- BindingSource.cs
- configsystem.cs
- MobileComponentEditorPage.cs
- UnorderedHashRepartitionStream.cs
- CodeTypeParameterCollection.cs
- References.cs
- ValueProviderWrapper.cs
- IntranetCredentialPolicy.cs
- Clause.cs
- SQLBinary.cs
- StringUtil.cs
- FixedDocumentPaginator.cs
- PartialCachingControl.cs
- RegistrySecurity.cs
- WebPartHeaderCloseVerb.cs
- SimpleParser.cs
- BindingMemberInfo.cs
- RangeValuePatternIdentifiers.cs
- ScaleTransform3D.cs
- NumericUpDownAccelerationCollection.cs
- WebPartEditorOkVerb.cs
- X509SecurityTokenProvider.cs
- AssemblyBuilder.cs
- LinearGradientBrush.cs
- ListBindingHelper.cs
- SizeIndependentAnimationStorage.cs
- Utils.cs
- FontFamily.cs
- Tokenizer.cs
- WebPartExportVerb.cs
- followingquery.cs
- CustomBindingElement.cs
- MimeTextImporter.cs
- ResourceManagerWrapper.cs
- FunctionParameter.cs
- NullRuntimeConfig.cs
- SetIterators.cs
- GenericIdentity.cs
- TrustSection.cs
- LayoutSettings.cs
- HtmlEncodedRawTextWriter.cs
- DebugController.cs
- CompressedStack.cs
- ReachIDocumentPaginatorSerializerAsync.cs
- StringKeyFrameCollection.cs
- CharStorage.cs
- TextSearch.cs
- RijndaelManaged.cs
- PropertyEmitter.cs
- ComNativeDescriptor.cs
- PointCollection.cs
- QueryValue.cs
- GeneralTransform2DTo3D.cs
- X509Chain.cs
- FamilyMap.cs
- StringInfo.cs
- CodeCommentStatementCollection.cs
- AppDomainUnloadedException.cs
- mil_sdk_version.cs
- SerialReceived.cs
- StorageInfo.cs
- QueryPageSettingsEventArgs.cs
- filewebresponse.cs
- SchemaComplexType.cs