using System;
using System.Runtime.InteropServices;
namespace System.Runtime.Hosting
{
/// Provides data for manifest-based activation of an application. This class cannot be inherited.
// Token: 0x020002B9 RID: 697
[ComVisible(true)]
[Serializable]
public sealed class ActivationArguments
{
/// Initializes a new instance of the class with the specified activation context.
/// An object identifying the manifest-based activation application.
///
/// is null.
// Token: 0x06002104 RID: 8452 RVA: 0x00078D10 File Offset: 0x00076F10
public ActivationArguments(ActivationContext activationData)
{
if (activationData == null)
{
throw new ArgumentNullException("activationData");
}
this._context = activationData;
this._identity = activationData.Identity;
}
/// Initializes a new instance of the class with the specified application identity.
/// An object identifying the manifest-based activation application.
///
/// is null.
// Token: 0x06002105 RID: 8453 RVA: 0x00078D48 File Offset: 0x00076F48
public ActivationArguments(ApplicationIdentity applicationIdentity)
{
if (applicationIdentity == null)
{
throw new ArgumentNullException("applicationIdentity");
}
this._identity = applicationIdentity;
}
/// Initializes a new instance of the class with the specified activation context and activation data.
/// An object identifying the manifest-based activation application.
/// An array of strings containing host-provided activation data.
///
/// is null.
// Token: 0x06002106 RID: 8454 RVA: 0x00078D68 File Offset: 0x00076F68
public ActivationArguments(ActivationContext activationContext, string[] activationData)
{
if (activationContext == null)
{
throw new ArgumentNullException("activationContext");
}
this._context = activationContext;
this._identity = activationContext.Identity;
this._data = activationData;
}
/// Initializes a new instance of the class with the specified application identity and activation data.
/// An object identifying the manifest-based activation application.
/// An array of strings containing host-provided activation data.
///
/// is null.
// Token: 0x06002107 RID: 8455 RVA: 0x00078D9C File Offset: 0x00076F9C
public ActivationArguments(ApplicationIdentity applicationIdentity, string[] activationData)
{
if (applicationIdentity == null)
{
throw new ArgumentNullException("applicationIdentity");
}
this._identity = applicationIdentity;
this._data = activationData;
}
/// Gets the activation context for manifest-based activation of an application.
/// An object identifying a manifest-based activation application.
// Token: 0x17000636 RID: 1590
// (get) Token: 0x06002108 RID: 8456 RVA: 0x00078DC4 File Offset: 0x00076FC4
public ActivationContext ActivationContext
{
get
{
return this._context;
}
}
/// Gets activation data from the host.
/// An array of strings containing host-provided activation data.
// Token: 0x17000637 RID: 1591
// (get) Token: 0x06002109 RID: 8457 RVA: 0x00078DCC File Offset: 0x00076FCC
public string[] ActivationData
{
get
{
return this._data;
}
}
/// Gets the application identity for a manifest-activated application.
/// An object identifying an application for manifest-based activation.
// Token: 0x17000638 RID: 1592
// (get) Token: 0x0600210A RID: 8458 RVA: 0x00078DD4 File Offset: 0x00076FD4
public ApplicationIdentity ApplicationIdentity
{
get
{
return this._identity;
}
}
// Token: 0x04000BE6 RID: 3046
private ActivationContext _context;
// Token: 0x04000BE7 RID: 3047
private ApplicationIdentity _identity;
// Token: 0x04000BE8 RID: 3048
private string[] _data;
}
}