Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This API supports the Visual Studio infrastructure and is not intended to be used directly from your code.
Namespace: Microsoft.Office.Tools.Word
Assemblies: Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)
Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
Syntax
'Declaration
Function CreateDocument ( _
serviceProvider As IServiceProvider, _
hostItemProvider As IHostItemProvider, _
primaryCookie As String, _
identifier As String, _
containerComponent As Object, _
extension As IDocumentExtension _
) As Document
Document CreateDocument(
IServiceProvider serviceProvider,
IHostItemProvider hostItemProvider,
string primaryCookie,
string identifier,
Object containerComponent,
IDocumentExtension extension
)
Parameters
- serviceProvider
Type: System.IServiceProvider
- hostItemProvider
Type: Microsoft.Office.Tools.IHostItemProvider
- primaryCookie
Type: System.String
- identifier
Type: System.String
- containerComponent
Type: System.Object
- extension
Type: Microsoft.Office.Tools.Word.IDocumentExtension
Return Value
Type: Microsoft.Office.Tools.Word.Document
.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.