ApplicationNameAttributeとは何? わかりやすく解説 Weblio辞書 (original) (raw)
ApplicationNameAttribute クラス
アセンブリのコンポーネントをインストールするときに使用する、COM+ アプリケーションの名前を指定します。このクラスは継承できません。
名前空間: System.EnterpriseServices
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)
構文
<AttributeUsageAttribute(AttributeTargets.Assembly, Inherited:=True)> _ <ComVisibleAttribute(False)> _ Public NotInheritable Class ApplicationNameAttribute Inherits Attribute
Dim instance As ApplicationNameAttribute
[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
/** @attribute AttributeUsageAttribute(AttributeTargets.Assembly, Inherited=true) / /* @attribute ComVisibleAttribute(false) */ public final class ApplicationNameAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Assembly, Inherited=true)
ComVisibleAttribute(false) public final class ApplicationNameAttribute extends 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.Object
System.Attribute
System.EnterpriseServices.ApplicationNameAttribute
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
.NET Framework
サポート対象 : 2.0、1.1、1.0
関連項目
ApplicationNameAttribute メンバ
System.EnterpriseServices 名前空間
ApplicationNameAttribute コンストラクタ
ApplicationNameAttribute クラスの新しいインスタンスを初期化して、コンポーネントのインストールに使用する COM+ アプリケーションの名前を指定します。
名前空間: System.EnterpriseServices
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)
構文
Public Sub New ( _ name As String _ )
Dim instance As New ApplicationNameAttribute(name)
public ApplicationNameAttribute ( string name )
public: ApplicationNameAttribute ( String^ name )
public ApplicationNameAttribute ( String name )
public function ApplicationNameAttribute ( name : String )
この属性を使用して 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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
.NET Framework
サポート対象 : 2.0、1.1、1.0
関連項目
ApplicationNameAttribute クラス
ApplicationNameAttribute メンバ
System.EnterpriseServices 名前空間
ApplicationNameAttribute プロパティ
| | 名前 | 説明 | |
| --------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
| TypeId | 派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。 (Attribute から継承されます。) |
|
| Value | アセンブリのコンポーネントを格納する COM+ アプリケーションの名前を示す値を取得します。 |
関連項目
ApplicationNameAttribute クラス
System.EnterpriseServices 名前空間
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 クラス
System.EnterpriseServices 名前空間
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 クラス
System.EnterpriseServices 名前空間