Freigeben über


ToolboxMultitargetingFields Class

Definition

Represents the names of the fields in the toolbox multi-targeting string map.

public ref class ToolboxMultitargetingFields abstract sealed
public ref class ToolboxMultitargetingFields abstract sealed
class ToolboxMultitargetingFields abstract sealed
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FHidden)]
public static class ToolboxMultitargetingFields
public static class ToolboxMultitargetingFields
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FHidden)>]
type ToolboxMultitargetingFields = class
type ToolboxMultitargetingFields = class
Public Class ToolboxMultitargetingFields
Inheritance
ToolboxMultitargetingFields
Attributes

Remarks

If toolbox items have this metadata, the toolbox will ensure that only those items that meet the following requirements can be enabled in the toolbox:

  1. The target framework of the active designer's project is included in the Frameworks field (ignoring profile differences), or else a lower version of the project's target framework appears there and the object has been promoted according to the default logic.

  2. One of the following three cases is true:

    1. The target framework of the active designer's project does not have a profile, or

    2. The assembly is not a framework assembly, or

    3. The assembly name (of any version) can be resolved against the project's target framework, and the type name is present in the resolved assembly.

The Frameworks field may be omitted, in which case the toolbox will query the item provider by calling GetInstanceOfExistingTypeForNewFramework when a designer in a managed project is activated.

If the ItemProvider field is omitted, the toolbox will apply its default compatibility logic rather than relying on a package's IVsProvideTargetedToolboxItems implementation.

Fields

AssemblyName

The assembly strong name, including the version number.

Frameworks

A semicolon-delimited list of frameworks this item supports (without profiles).

ItemProvider

The GUID of the package that implements IVsProvideTargetedToolboxItems and knows about this item type.

TypeName

The full type name, e.g. System.Windows.Forms.Button.

UseProjectTargetFrameworkVersionInTooltip

Determines whether to use the project target framework's version in toolbox item tooltips.

Applies to