mscorlib(4.0.0.0) API with additions
|
Identifies the activation context for the current application. This class cannot be inherited. More...
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... | |
Identifies the activation context for the current application. This class cannot be inherited.
Definition at line 14 of file ActivationContext.cs.
|
strong |
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.
|
static |
Initializes a new instance of the T:System.ActivationContext class using the specified application identity.
identity | An object that identifies an application. |
T:System.ArgumentNullException | identity is null . |
T:System.ArgumentException | No deployment or application identity is specified in identity . |
Definition at line 252 of file ActivationContext.cs.
|
static |
Initializes a new instance of the T:System.ActivationContext class using the specified application identity and array of manifest paths.
identity | An object that identifies an application. |
manifestPaths | A string array of manifest paths for the application. |
T:System.ArgumentNullException | identity is null . -or- manifestPaths is null . |
T:System.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. |
Definition at line 267 of file ActivationContext.cs.
void System.ActivationContext.Dispose | ( | ) |
Releases all resources used by the T:System.ActivationContext.
Implements System.IDisposable.
Definition at line 273 of file ActivationContext.cs.
byte [] System.ActivationContext.ApplicationManifestBytes => GetApplicationManifestBytes() |
Gets the ClickOnce application manifest for the current application.
Definition at line 67 of file ActivationContext.cs.
byte [] System.ActivationContext.DeploymentManifestBytes => GetDeploymentManifestBytes() |
Gets the ClickOnce deployment manifest for the current application.
Definition at line 71 of file ActivationContext.cs.
ContextForm System.ActivationContext.Form => _form |
Gets the form, or store context, for the current application.
Definition at line 63 of file ActivationContext.cs.
ApplicationIdentity System.ActivationContext.Identity => _applicationIdentity |
Gets the application identity for the current application.
Definition at line 59 of file ActivationContext.cs.