Прочетете на английски Редактиране

Споделяне чрез


ApplicationIdentity(String) Constructor

Definition

Initializes a new instance of the ApplicationIdentity class.

C#
public ApplicationIdentity(string applicationIdentityFullName);

Parameters

applicationIdentityFullName
String

The full name of the application.

Exceptions

applicationIdentityFullName is null.

Remarks

The format of the applicationIdentityFullName parameter is a comma-delimited Unicode string that begins with the name, as follows:

applicationURL  
#  
deploymentIdentity  
\  
applicationIdentity  

Where deploymentIdentity =

deploymentManifest  
, Version =   
Major.Minor.Build.Revision  
, Culture =   
CultureInfo  
, PublicKeyToken=  
TokenNumber  
, processorArchitecture=  
processorArchitecture  

And applicationIdentity =

applicationName  
, Version =   
Major.Minor.Build.Revision  
, Culture =   
CultureInfo  
, PublicKeyToken=  
TokenNumber  
, processorArchitecture=  
processorArchitecture  
, type=  
OsType  

The following is an example of the full name for an application named ActivationContext:

http://testserver/ActivationContext/ActivationContext.application  
#ActivationContext.application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ae13aad84c1a3490, processorArchitecture=msil  
\ActivationContext.exe, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ae13aad84c1a3490, processorArchitecture=msil, type=win32  

The default value for processor architecture is "msil", and the default value for type is "win32".

Applies to

Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10