ActivationArguments.ActivationContext Eigenschap
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Hiermee haalt u de activeringscontext op voor activering op basis van manifesten van een toepassing.
public:
property ActivationContext ^ ActivationContext { ActivationContext ^ get(); };
public ActivationContext ActivationContext { get; }
member this.ActivationContext : ActivationContext
Public ReadOnly Property ActivationContext As ActivationContext
Waarde van eigenschap
Een object dat een activeringstoepassing op basis van een manifest identificeert.
Voorbeelden
In het volgende codevoorbeeld ziet u hoe u de waarde van de ActivationContext eigenschap ophaalt uit de ActivationArguments toepassing op basis van een manifest.
Dit codevoorbeeld maakt deel uit van een groter voorbeeld voor de ActivationArguments klasse.
// Get the ActivationArguments from the SetupInformation property of the domain.
ActivationArguments activationArgs = AppDomain.CurrentDomain.SetupInformation.ActivationArguments;
// Get the ActivationContext from the ActivationArguments.
ActivationContext actContext = activationArgs.ActivationContext;
Console.WriteLine("The ActivationContext.Form property value is: " +
activationArgs.ActivationContext.Form);
Dim ac As ActivationContext = AppDomain.CurrentDomain.ActivationContext
' Get the ActivationArguments from the SetupInformation property of the domain.
Dim activationArgs As ActivationArguments = AppDomain.CurrentDomain.SetupInformation.ActivationArguments
' Get the ActivationContext from the ActivationArguments.
Dim actContext As ActivationContext = activationArgs.ActivationContext
Console.WriteLine("The ActivationContext.Form property value is: " + _
activationArgs.ActivationContext.Form.ToString())
Opmerkingen
Het ActivationContext object bevat een ApplicationIdentity en biedt alleen interne toegang tot het toepassingsmanifest. De activeringscontext wordt gebruikt tijdens activering op basis van manifesten om het domeinbeleid in te stellen en een beveiligingsmodel op basis van toepassingen te bieden.