Freigeben über


ToolboxMultitargetingFields Class

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

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.Shell.Interop.ToolboxMultitargetingFields

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)

Syntax

'Declaration
Public NotInheritable Class ToolboxMultitargetingFields
public static class ToolboxMultitargetingFields
public ref class ToolboxMultitargetingFields abstract sealed
[<AbstractClass>]
[<Sealed>]
type ToolboxMultitargetingFields =  class end
public final class ToolboxMultitargetingFields

The ToolboxMultitargetingFields type exposes the following members.

Fields

  Name Description
Public fieldStatic member AssemblyName The assembly strong name, including the version number.
Public fieldStatic member Frameworks A semicolon-delimited list of frameworks this item supports (without profiles).
Public fieldStatic member ItemProvider The GUID of the package that implements IVsProvideTargetedToolboxItems and knows about this item type.
Public fieldStatic member TypeName The full type name, e.g. System.Windows.Forms.Button.
Public fieldStatic member UseProjectTargetFrameworkVersionInTooltip Determines whether to use the project target framework's version in toolbox item tooltips.

Top

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.

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

Microsoft.VisualStudio.Shell.Interop Namespace