ActivationContext.CreatePartialActivationContext Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the ActivationContext class.
Overloads
CreatePartialActivationContext(ApplicationIdentity) |
Initializes a new instance of the ActivationContext class using the specified application identity. |
CreatePartialActivationContext(ApplicationIdentity, String[]) |
Initializes a new instance of the ActivationContext class using the specified application identity and array of manifest paths. |
CreatePartialActivationContext(ApplicationIdentity)
Initializes a new instance of the ActivationContext class using the specified application identity.
public:
static ActivationContext ^ CreatePartialActivationContext(ApplicationIdentity ^ identity);
public static ActivationContext CreatePartialActivationContext (ApplicationIdentity identity);
static member CreatePartialActivationContext : ApplicationIdentity -> ActivationContext
Public Shared Function CreatePartialActivationContext (identity As ApplicationIdentity) As ActivationContext
Parameters
- identity
- ApplicationIdentity
An object that identifies an application.
Returns
An object with the specified application identity.
Exceptions
identity
is null
.
No deployment or application identity is specified in identity
.
Remarks
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.
Applies to
CreatePartialActivationContext(ApplicationIdentity, String[])
Initializes a new instance of the ActivationContext class using the specified application identity and array of manifest paths.
public:
static ActivationContext ^ CreatePartialActivationContext(ApplicationIdentity ^ identity, cli::array <System::String ^> ^ manifestPaths);
public static ActivationContext CreatePartialActivationContext (ApplicationIdentity identity, string[] manifestPaths);
static member CreatePartialActivationContext : ApplicationIdentity * string[] -> ActivationContext
Public Shared Function CreatePartialActivationContext (identity As ApplicationIdentity, manifestPaths As String()) As ActivationContext
Parameters
- identity
- ApplicationIdentity
An object that identifies an application.
- manifestPaths
- String[]
A string array of manifest paths for the application.
Returns
An object with the specified application identity and array of manifest paths.
Exceptions
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.
Remarks
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.
Applies to
.NET