mscorlib(4.0.0.0) API with additions
System.ActivationContext Class Reference

Identifies the activation context for the current application. This class cannot be inherited. More...

Inheritance diagram for System.ActivationContext:
[legend]
Collaboration diagram for System.ActivationContext:
[legend]

Public Types

enum  ContextForm { ContextForm.Loose, ContextForm.StoreBounded }
 Indicates the context for a manifest-activated application. More...
 

Public Member Functions

void Dispose ()
 Releases all resources used by the T:System.ActivationContext. More...
 

Static Public Member Functions

static ActivationContext CreatePartialActivationContext (ApplicationIdentity identity)
 Initializes a new instance of the T:System.ActivationContext class using the specified application identity. More...
 
static ActivationContext CreatePartialActivationContext (ApplicationIdentity identity, string[] manifestPaths)
 Initializes a new instance of the T:System.ActivationContext class using the specified application identity and array of manifest paths. More...
 

Public Attributes

ApplicationIdentity Identity => _applicationIdentity
 Gets the application identity for the current application. More...
 
ContextForm Form => _form
 Gets the form, or store context, for the current application. More...
 
byte [] ApplicationManifestBytes => GetApplicationManifestBytes()
 Gets the ClickOnce application manifest for the current application. More...
 
byte [] DeploymentManifestBytes => GetDeploymentManifestBytes()
 Gets the ClickOnce deployment manifest for the current application. More...
 

Detailed Description

Identifies the activation context for the current application. This class cannot be inherited.

Definition at line 14 of file ActivationContext.cs.

Member Enumeration Documentation

◆ ContextForm

Indicates the context for a manifest-activated application.

Enumerator
Loose 

The application is not in the ClickOnce store.

StoreBounded 

The application is contained in the ClickOnce store.

Definition at line 17 of file ActivationContext.cs.

Member Function Documentation

◆ CreatePartialActivationContext() [1/2]

static ActivationContext System.ActivationContext.CreatePartialActivationContext ( ApplicationIdentity  identity)
static

Initializes a new instance of the T:System.ActivationContext class using the specified application identity.

Parameters
identityAn object that identifies an application.
Returns
An object with the specified application identity.
Exceptions
T:System.ArgumentNullExceptionidentity is null.
T:System.ArgumentExceptionNo deployment or application identity is specified in identity .

Definition at line 252 of file ActivationContext.cs.

◆ CreatePartialActivationContext() [2/2]

static ActivationContext System.ActivationContext.CreatePartialActivationContext ( ApplicationIdentity  identity,
string []  manifestPaths 
)
static

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

Parameters
identityAn object that identifies an application.
manifestPathsA string array of manifest paths for the application.
Returns
An object with the specified application identity and array of manifest paths.
Exceptions
T:System.ArgumentNullExceptionidentity is null. -or- manifestPaths is null.
T:System.ArgumentExceptionNo 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.

Definition at line 267 of file ActivationContext.cs.

◆ Dispose()

void System.ActivationContext.Dispose ( )

Releases all resources used by the T:System.ActivationContext.

Implements System.IDisposable.

Definition at line 273 of file ActivationContext.cs.

Member Data Documentation

◆ ApplicationManifestBytes

byte [] System.ActivationContext.ApplicationManifestBytes => GetApplicationManifestBytes()

Gets the ClickOnce application manifest for the current application.

Returns
A byte array that contains the ClickOnce application manifest for the application that is associated with this T:System.ActivationContext.

Definition at line 67 of file ActivationContext.cs.

◆ DeploymentManifestBytes

byte [] System.ActivationContext.DeploymentManifestBytes => GetDeploymentManifestBytes()

Gets the ClickOnce deployment manifest for the current application.

Returns
A byte array that contains the ClickOnce deployment manifest for the application that is associated with this T:System.ActivationContext.

Definition at line 71 of file ActivationContext.cs.

◆ Form

ContextForm System.ActivationContext.Form => _form

Gets the form, or store context, for the current application.

Returns
One of the enumeration values.

Definition at line 63 of file ActivationContext.cs.

◆ Identity

ApplicationIdentity System.ActivationContext.Identity => _applicationIdentity

Gets the application identity for the current application.

Returns
An T:System.ApplicationIdentity object that identifies the current application.

Definition at line 59 of file ActivationContext.cs.


The documentation for this class was generated from the following file: