ApplicationNameAttribute クラス
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)
構文
<AttributeUsageAttribute(AttributeTargets.Assembly, Inherited:=True)> _ <ComVisibleAttribute(False)> _ Public NotInheritable Class ApplicationNameAttribute Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Assembly, Inherited=true)] [ComVisibleAttribute(false)] public sealed class ApplicationNameAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Assembly, Inherited=true)] [ComVisibleAttribute(false)] public ref class ApplicationNameAttribute sealed : public Attribute
この属性を使用して ServicedComponent クラスをマークする方法の例を次に示します。
using System; using System.EnterpriseServices; [assembly: ApplicationName("Calculator")] [assembly: ApplicationActivation(ActivationOption.Library)] [assembly: System.Reflection.AssemblyKeyFile("Calculator.snk")] public class Calculator : ServicedComponent { public int Add (int x, int y) { return(x+y); } }
[assembly:ApplicationName("Calculator")]; [assembly:ApplicationActivation(ActivationOption::Library)]; [assembly:System::Reflection::AssemblyKeyFile("Calculator.snk")]; public ref class Calculator: public ServicedComponent { public: int Add( int x, int y ) { return (x + y); } };
import System.*; import System.EnterpriseServices.*; /** @assembly ApplicationName("Calculator") */ /** @assembly ApplicationActivation(ActivationOption.Library) */ /** @assembly System.Reflection.AssemblyKeyFile("Calculator.snk") */ public class Calculator extends ServicedComponent { public int Add(int x, int y) { return x + y; } //Add } //Calculator
System.Attribute
System.EnterpriseServices.ApplicationNameAttribute
プラットフォーム
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
ApplicationNameAttribute コンストラクタ
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)
構文
使用例
この属性を使用して ServicedComponent クラスをマークする方法の例を次に示します。
using System; using System.EnterpriseServices; [assembly: ApplicationName("Calculator")] [assembly: ApplicationActivation(ActivationOption.Library)] [assembly: System.Reflection.AssemblyKeyFile("Calculator.snk")] public class Calculator : ServicedComponent { public int Add (int x, int y) { return(x+y); } }
[assembly:ApplicationName("Calculator")]; [assembly:ApplicationActivation(ActivationOption::Library)]; [assembly:System::Reflection::AssemblyKeyFile("Calculator.snk")]; public ref class Calculator: public ServicedComponent { public: int Add( int x, int y ) { return (x + y); } };
import System.*; import System.EnterpriseServices.*; /** @assembly ApplicationName("Calculator") */ /** @assembly ApplicationActivation(ActivationOption.Library) */ /** @assembly System.Reflection.AssemblyKeyFile("Calculator.snk") */ public class Calculator extends ServicedComponent { public int Add(int x, int y) { return x + y; } //Add } //Calculator
プラットフォーム
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
ApplicationNameAttribute プロパティ
パブリック プロパティ
名前 | 説明 | |
---|---|---|
TypeId | 派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。 ( Attribute から継承されます。) | |
Value | アセンブリのコンポーネントを格納する COM+ アプリケーションの名前を示す値を取得します。 |
ApplicationNameAttribute メソッド
パブリック メソッド
名前 | 説明 | |
---|---|---|
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 から継承されます。) |
ApplicationNameAttribute メンバ
アセンブリのコンポーネントをインストールするときに使用する、COM+ アプリケーションの名前を指定します。このクラスは継承できません。
ApplicationNameAttribute データ型で公開されるメンバを以下の表に示します。
パブリック コンストラクタ
名前 | 説明 | |
---|---|---|
ApplicationNameAttribute | ApplicationNameAttribute クラスの新しいインスタンスを初期化して、コンポーネントのインストールに使用する COM+ アプリケーションの名前を指定します。 |
名前 | 説明 | |
---|---|---|
TypeId | 派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。(Attribute から継承されます。) | |
Value | アセンブリのコンポーネントを格納する COM+ アプリケーションの名前を示す値を取得します。 |
名前 | 説明 | |
---|---|---|
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 から継承されます。) |
- ApplicationNameAttributeのページへのリンク