共用方式為


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」。

適用於