Document Constructor (String, String)

This API supports the Visual Studio Tools for Office infrastructure and is not intended to be used directly from your code.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)


Public Sub New ( _
    cookie As String, _
    identifier As String _
Dim cookie As String
Dim identifier As String

Dim instance As New Document(cookie, _
public Document(
    string cookie,
    string identifier



You cannot use the Document constructor to create a new Document host item.

In application-level projects, you can create Document host items programmatically by using the GetVstoObject method of any Microsoft.Office.Interop.Word.Document object. For more information, see Extending Word Documents and Excel Workbooks in Application-Level Add-ins at Run Time.

Document host items cannot be created programmatically in document-level projects. For more information, see Document Host Item.

.NET Framework Security

See Also


Document Class

Document Members

Document Overload

Microsoft.Office.Tools.Word Namespace