ApplicationIDAttribute(String) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化類別的新實例 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")>