MsiComponentIdAttribute MsiComponentIdAttribute MsiComponentIdAttribute MsiComponentIdAttribute Class

Definition

Defines the Windows Installer component ID. The component ID is used by the Windows Installer to indicate the installation path to the VSPackage.

public ref class MsiComponentIdAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
public sealed class MsiComponentIdAttribute : Attribute
type MsiComponentIdAttribute = class
    inherit Attribute
Public NotInheritable Class MsiComponentIdAttribute
Inherits Attribute
Inheritance
MsiComponentIdAttributeMsiComponentIdAttributeMsiComponentIdAttributeMsiComponentIdAttribute
Attributes

Remarks

When to Call

Apply this attribute to a Package-derived class or one that implements IVsPackage when you use the Windows Installer to install your VSPackage.

Basic Usage

MsiComponentIdAttribute defines the Microsoft Windows Installer component ID. The component ID is used by the Windows Installer to indicate the installation path to the component.

This attribute class is only used to provide data for external registration tools like regpkg.exe. It does not have any effect on the runtime behavior of the VSPackage. For more information, see Registering VSPackages.

Note

Visual C# automatically appends the word "Attribute" to the name of any attribute class. In Visual C# code, refer to this attribute as MsiComponentId.

Constructors

MsiComponentIdAttribute(String) MsiComponentIdAttribute(String) MsiComponentIdAttribute(String) MsiComponentIdAttribute(String)

This constructor creates a new MsiComponentIdAttribute object.

Properties

Id Id Id Id

The Id property returns a string containing the Windows Installer component registration ID.

Applies to