AssemblyDescriptionAttribute クラス
アセンブリ: mscorlib (mscorlib.dll 内)

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

Microsoft Visual Studio 2005 でプロジェクトを作成すると、この属性が空の文字列値として自動的に適用されます。Visual Studio 2005 でこの値を設定するには、[ファイル] メニューでプロジェクトのプロパティを選択し、[アセンブリ情報] をクリックします。この属性は、プロジェクト内の AssemblyInfo ファイルに保存されています。コードで属性を指定するには、属性を削除しておく必要があります。そうしないと、この属性を複数回適用することはできないことを示すエラーが発生します。
Windows エクスプローラでアセンブリ ファイルを右クリックすると、この属性は、ファイルのプロパティ ダイアログ ボックスの [バージョン情報] タブにある [コメント] の値として表示されます。

簡単なアセンブリの AssemblyDescriptionAttribute を設定し、この属性が定義されたかどうかを示すコード例を次に示します。
Imports System Imports System.Reflection <Assembly:AssemblyDescriptionAttribute("My Utility")> ' Note: The suffix "Attribute" can be omitted: ' <Assembly: AssemblyTitle("A title examle")> Public Class Test Public Shared Sub Main() ' ' Get the assembly. Dim asm As [Assembly] = [Assembly].GetCallingAssembly ' Verify that the description is applied. Dim aType As Type = GetType(AssemblyDescriptionAttribute) Console.WriteLine("Description applied: {0}", asm.IsDefined(aType, False)) End Sub End Class ' The output is: ' Description Applied: True '
using System; using System.Reflection; [assembly:AssemblyDescriptionAttribute("My Utility")] public class Test { public static void Main() { // Get the assembly. Assembly asm = Assembly.GetCallingAssembly(); // Verify that the description is applied. Type aType = typeof(AssemblyDescriptionAttribute); Console.WriteLine("Description applied: {0}", asm.IsDefined(aType, false)); } } // The output is: // Description Applied: True // //

System.Attribute
System.Reflection.AssemblyDescriptionAttribute


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


AssemblyDescriptionAttribute コンストラクタ
アセンブリ: mscorlib (mscorlib.dll 内)

Public Sub New ( _ description As String _ )
Dim description As String Dim instance As New AssemblyDescriptionAttribute(description)
public AssemblyDescriptionAttribute ( string description )
public: AssemblyDescriptionAttribute ( String^ description )
public AssemblyDescriptionAttribute ( String description )
public function AssemblyDescriptionAttribute ( description : String )

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


AssemblyDescriptionAttribute プロパティ
AssemblyDescriptionAttribute メソッド

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

AssemblyDescriptionAttribute メンバ
AssemblyDescriptionAttribute データ型で公開されるメンバを以下の表に示します。



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

- AssemblyDescriptionAttributeのページへのリンク