ApplicationIdentity(String) 构造函数

定义

初始化 ApplicationIdentity 类的新实例。

public:
 ApplicationIdentity(System::String ^ applicationIdentityFullName);
public ApplicationIdentity (string applicationIdentityFullName);
new ApplicationIdentity : string -> ApplicationIdentity
Public Sub New (applicationIdentityFullName As String)

参数

applicationIdentityFullName
String

应用程序的全名。

例外

applicationIdentityFullNamenull

注解

参数的格式 applicationIdentityFullName 是逗号分隔的 Unicode 字符串,以 名称开头,如下所示:

applicationURL  
#  
deploymentIdentity  
\  
applicationIdentity  

Where deploymentIdentity =

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

applicationIdentity =

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

下面是名为 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  

处理器体系结构的默认值为“msil”,类型默认值为“win32”。

适用于