CustomTaskPaneCollection Constructor (IHostItemProvider, IServiceProvider, String, Object, String)
This API supports the Visual Studio Tools for Office infrastructure and is not intended to be used directly from your code.
Initializes a new instance of the CustomTaskPaneCollection class.
Namespace: Microsoft.Office.Tools
Assembly: Microsoft.Office.Tools.Common.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)
Syntax
'Declaration
Public Sub New ( _
hostItemProvider As IHostItemProvider, _
serviceProvider As IServiceProvider, _
primaryCookie As String, _
container As Object, _
identifier As String _
)
'Usage
Dim hostItemProvider As IHostItemProvider
Dim serviceProvider As IServiceProvider
Dim primaryCookie As String
Dim container As Object
Dim identifier As String
Dim instance As New CustomTaskPaneCollection(hostItemProvider, _
serviceProvider, primaryCookie, _
container, identifier)
public CustomTaskPaneCollection(
IHostItemProvider hostItemProvider,
IServiceProvider serviceProvider,
string primaryCookie,
Object container,
string identifier
)
Parameters
- hostItemProvider
Type: Microsoft.VisualStudio.Tools.Applications.Runtime.IHostItemProvider
- serviceProvider
Type: System.IServiceProvider
- primaryCookie
Type: System.String
- container
Type: System.Object
- identifier
Type: System.String
Remarks
Do not create your own instance of CustomTaskPaneCollection. Instead, use the CustomTaskPanes field of the ThisAddIn class. For more information about the ThisAddIn class, see Programming Application-Level Add-Ins and AddIn Host Item.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
CustomTaskPaneCollection Class
CustomTaskPaneCollection Members