Export (0) Print
Expand All

ActivationContext.CreatePartialActivationContext Method (ApplicationIdentity, String[])

Initializes a new instance of the ActivationContext class using the specified application identity and array of manifest paths.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

public static ActivationContext CreatePartialActivationContext (
	ApplicationIdentity identity,
	string[] manifestPaths
)
public static ActivationContext CreatePartialActivationContext (
	ApplicationIdentity identity, 
	String[] manifestPaths
)
public static function CreatePartialActivationContext (
	identity : ApplicationIdentity, 
	manifestPaths : String[]
) : ActivationContext
Not applicable.

Parameters

identity

An ApplicationIdentity object that identifies an application.

manifestPaths

A string array of manifest paths for the application.

Return Value

An ActivationContext object.

Exception typeCondition

ArgumentNullException

identity is a null reference (Nothing in Visual Basic).

-or-

manifestPaths is a null reference (Nothing in Visual Basic).

ArgumentException

No deployment or application identity is specified in identity.

-or-

identity does not match the identity in the manifests.

-or-

identity does not have the same number of components as the manifest paths.

The CreatePartialActivationContext method calls an internal constructor to create a new activation context. The implementation of the ActivationContext class in the .NET Framework version 2.0 is designed for applications that are neither fully installed in a store nor fully contained in a folder. This method provides backward compatibility for later releases in which public constructors provide full activation contexts.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2015 Microsoft