A Sandcastle Documented Class Library

# IProjectService PublishItems Method

Publish the selected items to a target project.

Namespace: Dundas.BI.FileSystem
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    PublishResult PublishItems(
    	Guid targetProjectId,
    	ICollection<Guid> itemIds,
    	PublishOptions publishOptions
    )

    Function PublishItems (
    	targetProjectId As Guid,
    	itemIds As ICollection(Of Guid),
    	publishOptions As PublishOptions
    ) As PublishResult

    PublishResult^ PublishItems(
    	Guid targetProjectId,
    	ICollection<Guid>^ itemIds,
    	PublishOptions^ publishOptions
    )

    abstract PublishItems :
            targetProjectId : Guid *
            itemIds : ICollection<Guid> *
            publishOptions : PublishOptions -> PublishResult

#### Parameters

targetProjectId
  Type: System
  Guid
  The ID of the publish target project.
itemIds
  Type: System.Collections.Generic
  ICollection
  Guid
  The IDs of the publishing items.
publishOptions
  Type: Dundas.BI.FileSystem
  PublishOptions
  Options affecting the behavior of the publish operation.

#### Return Value

Type: PublishResult
The result of the publish operation.
Exceptions

Exception | Condition
--- | ---
ArgumentNullException | publishOptions is .
ArgumentException | itemIds is or empty. -or- targetProjectId is Empty.
NotFoundException | targetProjectId references a project which does not exist. -or- At least one item specified by itemIds does not exist.
InvalidOperationException | The items being published do not belong to the same project. -or- At least one item specified by itemIds is a project. -or- At least one item specified by itemIds is not part of a project.
NoPrivilegeException | The caller does not have the Write and ListFolderContents privileges on the target project or the project to which the items being published belong.
InvalidSessionException | The caller context is not associated with a valid session.

See Also

#### Reference

IProjectService Interface
Dundas.BI.FileSystem Namespace