Partager via


Documents.AddBlogDocument Method

Returns a object that represents a new blog document that Microsoft Office Word publishes to the account described by the first three parameters.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Function AddBlogDocument ( _
    ProviderID As String, _
    PostURL As String, _
    BlogName As String, _
    PostID As String _
) As Document
'Usage
Dim instance As Documents
Dim ProviderID As String
Dim PostURL As String
Dim BlogName As String
Dim PostID As String
Dim returnValue As Document

returnValue = instance.AddBlogDocument(ProviderID, _
    PostURL, BlogName, PostID)
Document AddBlogDocument(
    string ProviderID,
    string PostURL,
    string BlogName,
    string PostID
)

Parameters

  • ProviderID
    Type: System.String
    A GUID that is the unique value a provider uses when they register themselves with Word.
  • PostURL
    Type: System.String
    The URL that is used to add posts to the blog.
  • BlogName
    Type: System.String
    A display name for the blog that will be used in Word.
  • PostID
    Type: System.String
    The ID for an existing post with which to populate the document created by using the AddBlogDocument method.

Return Value

Type: Microsoft.Office.Interop.Word.Document
_Document

Remarks

This method creates a new document, and it also registers the specified blog account with Word if it is not already registered. In addition, if the PostID parameter is specified, the new document is populated with the contents of the post specified by the value of the PostID parameter, from the provider's Web site.

See Also

Reference

Documents Interface

Documents Members

Microsoft.Office.Interop.Word Namespace