Condividi tramite


MsiTokenAttribute Class

Defines a token string for the MSI installer.

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'Dichiarazione
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True, Inherited := False)> _
Public NotInheritable Class MsiTokenAttribute _
    Inherits Attribute
'Utilizzo
Dim instance As MsiTokenAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
public sealed class MsiTokenAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = true, Inherited = false)]
public ref class MsiTokenAttribute sealed : public Attribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, Inherited = false)>]
type MsiTokenAttribute =  
    class
        inherit Attribute
    end
public final class MsiTokenAttribute extends Attribute

Remarks

The regpkg.exe tool searches for these attributes on a package class to identify custom replacement tokens when generating registry scripts for the Microsoft Installer. Possible token names vary, but regpkg.exe supports the following tokens:

$ComponentPath : the path to the component.

SystemFolder : the path to the OS system folder (%systemroot%\system32)

For more information, see Registering VSPackages.

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.VisualStudio.Shell.MsiTokenAttribute

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

MsiTokenAttribute Members

Microsoft.VisualStudio.Shell Namespace