ApplicationIDAttribute クラス
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)

<AttributeUsageAttribute(AttributeTargets.Assembly, Inherited:=True)> _ <ComVisibleAttribute(False)> _ Public NotInheritable Class ApplicationIDAttribute Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Assembly, Inherited=true)] [ComVisibleAttribute(false)] public sealed class ApplicationIDAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Assembly, Inherited=true)] [ComVisibleAttribute(false)] public ref class ApplicationIDAttribute sealed : public Attribute

ApplicationIDAttribute は、そのコンストラクタの GUID を取得します。登録が行われると、アセンブリのコンポーネントが指定された ID を持つアプリケーションにインストールされます。

ApplicationIDAttribute 型の使用方法のコード例を次に示します。
Imports System Imports System.EnterpriseServices Imports System.Reflection ' References: ' System.EnterpriseServices ' 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")> Public Class ApplicationIDAttribute_Value Inherits ServicedComponent Public Sub ValueExample() ' Get the ApplicationIDAttribute applied to the assembly. Dim attribute As ApplicationIDAttribute = CType(Attribute.GetCustomAttribute(System.Reflection.Assembly.GetExecutingAssembly(), GetType(ApplicationIDAttribute), False), ApplicationIDAttribute) ' Display the value of the attribute's Value property. MsgBox("ApplicationIDAttribute.Value: " & attribute.Value.ToString()) End Sub 'ValueExample End Class 'ApplicationIDAttribute_Value
using System; using System.EnterpriseServices; using System.Reflection; // References: // System.EnterpriseServices // 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")] public class ApplicationIDAttribute_Value : ServicedComponent { public void ValueExample() { // Get the ApplicationIDAttribute applied to the assembly. ApplicationIDAttribute attribute = (ApplicationIDAttribute)Attribute.GetCustomAttribute( System.Reflection.Assembly.GetExecutingAssembly(), typeof(ApplicationIDAttribute), false); // Display the value of the attribute's Value property. Console.WriteLine("ApplicationIDAttribute.Value: {0}", attribute.Value); } }
import System.*; import System.EnterpriseServices.*; import System.Reflection.*; // References: // System.EnterpriseServices // 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") */ public class ApplicationIDAttribute_Value extends ServicedComponent { public void ValueExample() { // Get the ApplicationIDAttribute applied to the assembly. ApplicationIDAttribute attribute = (ApplicationIDAttribute)( Attribute.GetCustomAttribute(System.Reflection.Assembly. GetExecutingAssembly(), ApplicationIDAttribute.class.ToType() , false)); // Display the value of the attribute's Value property. Console.WriteLine("ApplicationIDAttribute.Value: {0}", attribute.get_Value()); } //ValueExample } //ApplicationIDAttribute_Value

System.Attribute
System.EnterpriseServices.ApplicationIDAttribute


Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


ApplicationIDAttribute コンストラクタ
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)


新しい 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")]


Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


ApplicationIDAttribute プロパティ

名前 | 説明 | |
---|---|---|
![]() | TypeId | 派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。 ( Attribute から継承されます。) |
![]() | Value | COM+ アプリケーションの GUID を取得します。 |

ApplicationIDAttribute メソッド

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 ( Attribute から継承されます。) |
![]() | GetCustomAttribute | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用された指定した型のカスタム属性を取得します。 ( Attribute から継承されます。) |
![]() | GetCustomAttributes | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されたカスタム属性の配列を取得します。 ( Attribute から継承されます。) |
![]() | GetHashCode | このインスタンスのハッシュ コードを返します。 ( Attribute から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | IsDefaultAttribute | 派生クラス内でオーバーライドされたときに、このインスタンスの値が派生クラスの既定値かどうかを示します。 ( Attribute から継承されます。) |
![]() | IsDefined | オーバーロードされます。 指定した型のカスタム属性が、アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されているかどうかを判断します。 ( Attribute から継承されます。) |
![]() | Match | 派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 ( Attribute から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |

ApplicationIDAttribute メンバ
このアセンブリのアプリケーション ID を (GUID として) 指定します。このクラスは継承できません。
ApplicationIDAttribute データ型で公開されるメンバを以下の表に示します。

名前 | 説明 | |
---|---|---|
![]() | ApplicationIDAttribute | COM+ アプリケーションのアプリケーション ID を表している GUID を指定する、ApplicationIDAttribute クラスの新しいインスタンスを初期化します。 |

名前 | 説明 | |
---|---|---|
![]() | TypeId | 派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。(Attribute から継承されます。) |
![]() | Value | COM+ アプリケーションの GUID を取得します。 |

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 ( Attribute から継承されます。) |
![]() | GetCustomAttribute | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用された指定した型のカスタム属性を取得します。 (Attribute から継承されます。) |
![]() | GetCustomAttributes | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されたカスタム属性の配列を取得します。 (Attribute から継承されます。) |
![]() | GetHashCode | このインスタンスのハッシュ コードを返します。 (Attribute から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | IsDefaultAttribute | 派生クラス内でオーバーライドされたときに、このインスタンスの値が派生クラスの既定値かどうかを示します。 (Attribute から継承されます。) |
![]() | IsDefined | オーバーロードされます。 指定した型のカスタム属性が、アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されているかどうかを判断します。 (Attribute から継承されます。) |
![]() | Match | 派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 (Attribute から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |

- ApplicationIDAttributeのページへのリンク