ToolboxMultitargetingFields Class
Represents the names of the fields in the toolbox multi-targeting string map.
Inheritance Hierarchy
System.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 | |
---|---|---|
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. |
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:
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.
One of the following three cases is true:
The target framework of the active designer's project does not have a profile, or
The assembly is not a framework assembly, or
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.