Factory.CreateControlSite 方法
This API supports the Visual Studio infrastructure and is not intended to be used directly from your code.
命名空间: Microsoft.Office.Tools.Word
程序集: Microsoft.Office.Tools.Word(在 Microsoft.Office.Tools.Word.dll 中)
Microsoft.Office.Tools.Word.v4.0.Utilities(在 Microsoft.Office.Tools.Word.v4.0.Utilities.dll 中)
语法
声明
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
)
参数
- serviceProvider
类型:System.IServiceProvider
- hostItemProvider
类型:Microsoft.Office.Tools.IHostItemProvider
- primaryCookie
类型:System.String
- identifier
类型:System.String
- containerComponent
类型:System.Object
- control
类型:System.Windows.Forms.Control
返回值
类型:Microsoft.Office.Tools.Word.ControlSite
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。