Factory.CreateControlSite Method
This API supports the Visual Studio infrastructure and is not intended to be used directly from your code.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
Syntax
'Declaration
Function CreateControlSite ( _
serviceProvider As IServiceProvider, _
hostItemProvider As IHostItemProvider, _
primaryCookie As String, _
identifier As String, _
containerComponent As Object, _
control As Control _
) As ControlSite
ControlSite CreateControlSite(
IServiceProvider serviceProvider,
IHostItemProvider hostItemProvider,
string primaryCookie,
string identifier,
Object containerComponent,
Control control
)
Parameters
- serviceProvider
Type: System.IServiceProvider
- hostItemProvider
Type: Microsoft.Office.Tools.IHostItemProvider
- primaryCookie
Type: System.String
- identifier
Type: System.String
- containerComponent
Type: System.Object
- control
Type: System.Windows.Forms.Control
Return Value
Type: Microsoft.Office.Tools.Word.ControlSite
.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.