Opens a package file. Namespace: Microsoft.ComponentStudio.ComponentPlatformInterface
Assembly: Microsoft.ComponentStudio.ComponentPlatformInterface (in microsoft.componentstudio.componentplatforminterface.dll)

Usage

Visual Basic
Dim path As String
Dim returnValue As Package
Dim cpi1 As Cpi
returnValue = cpi1.OpenPackage(path)

Syntax

Visual Basic
Public Function OpenPackage( _
		ByVal path As String _
) As Package
C#
public Package OpenPackage(
		string path
);
C++
public:
Package^ OpenPackage(
		String^ path
);
J#
public Package OpenPackage(
		System.String path
);
JScript
public function OpenPackage(
		 path : String
) : Package;

Parameters

path

Path to a .cab file or a folder containing package files.

Return Value

An instance of Package that describes the package. System.ArgumentNullException is thrown if path is null.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Vista, and Windows 2000

Target Platforms

See Also