Click or drag to resize
FileBasedProjectCreateFromProjectPackage Method (String, String, EventHandlerProgressEventArgs, EventHandlerMessageEventArgs, ProjectPackageImport)
Creates a new project from a project package.

Namespace: Sdl.ProjectAutomation.FileBased
Assembly: Sdl.ProjectAutomation.FileBased (in Sdl.ProjectAutomation.FileBased.dll) Version: 3.0.0.0 (3.1.5799.0)
Syntax
public static FileBasedProject CreateFromProjectPackage(
	string projectPackageFilePath,
	string projectFolder,
	EventHandler<ProgressEventArgs> statusEventHandler,
	EventHandler<MessageEventArgs> messageEventHandler,
	out ProjectPackageImport result
)

Parameters

projectPackageFilePath
Type: SystemString
The file path of the project package to open into a new project.
projectFolder
Type: SystemString
The file path of an empty folder to create the new project in.
statusEventHandler
Type: SystemEventHandlerProgressEventArgs
Event handler for package creation status events. Can be null.
messageEventHandler
Type: SystemEventHandlerMessageEventArgs
Event handler for message events. Can be null.
result
Type: Sdl.ProjectAutomation.CoreProjectPackageImport
Information about the project package import operation.

Return Value

Type: FileBasedProject
The newly created file-based project; or null if the package import failed.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when projectFolder or projectPackageFilePath are null or empty.
FileNotFoundExceptionThrown when projectPackageFilePath does not exist.
ArgumentExceptionThrown when projectFolder refers to a non-empty directory.
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments