ApplicationIDAttribute(String) 构造函数

定义

初始化 ApplicationIDAttribute 类的新实例,该类指定表示 COM+ 应用程序的应用程序 ID 的 GUID。

public:
 ApplicationIDAttribute(System::String ^ guid);
public ApplicationIDAttribute (string guid);
new System.EnterpriseServices.ApplicationIDAttribute : string -> System.EnterpriseServices.ApplicationIDAttribute
Public Sub New (guid As String)

参数

guid
String

与 COM+ 应用程序关联的 GUID。

示例

下面的代码示例演示如何创建新的 ApplicationIDAttribute

// The GUID (Globally Unique Identifier) shown below is for example purposes
// only and should be replaced by a GUID that you have generated.
[assembly: ApplicationID("727FC170-1D80-4e89-84CC-22AAB10A6F24")]
' The GUID (Globally Unique Identifier) shown below is for example purposes
' only and should be replaced by a GUID that you have generated.
<Assembly: ApplicationID("727FC170-1D80-4e89-84CC-22AAB10A6F24")>

适用于