ProvideToolboxPageAttribute Class
Registers a VSPackage as providing one or more dialog pages in the Customize Toolbox dialog page of the Visual Studio IDE.
Namespace: Microsoft.VisualStudio.Shell
Assemblies: Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'宣言
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True, Inherited := True)> _
Public NotInheritable Class ProvideToolboxPageAttribute _
Inherits ProvideOptionDialogPageAttribute
'使用
Dim instance As ProvideToolboxPageAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
public sealed class ProvideToolboxPageAttribute : ProvideOptionDialogPageAttribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = true, Inherited = true)]
public ref class ProvideToolboxPageAttribute sealed : public ProvideOptionDialogPageAttribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, Inherited = true)>]
type ProvideToolboxPageAttribute =
class
inherit ProvideOptionDialogPageAttribute
end
public final class ProvideToolboxPageAttribute extends ProvideOptionDialogPageAttribute
Remarks
This attribute should be placed only on classes by providing VSPackages by implementing Package.
This attribute is read by the base implementation of the Package class when Visual Studio requests a Customize Toolbox dialog page and maps the request to the class implementing the Customize Toolbox dialog page.
A Customize Toolbox dialog page must be derived from the DialogPage class.
Attribute Context
Applies to |
Classes providing VSPackages by implementing IVsPackage or Package. |
Repeatable |
Yes |
Required attributes |
None |
Invalid attributes |
None |
Notes to Callers
Inheritance Hierarchy
System.Object
System.Attribute
Microsoft.VisualStudio.Shell.RegistrationAttribute
Microsoft.VisualStudio.Shell.ProvideOptionDialogPageAttribute
Microsoft.VisualStudio.Shell.ProvideToolboxPageAttribute
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.