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

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

属性付きオブジェクトのコンテキスト属性が作成者のコンテキストのコンテキスト属性と競合する場合は、属性付きオブジェクトを作成しようとすると System.Runtime.InteropServices.COMException がスローされます。

MustRunInClientContextAttribute 型の使用方法のコード例を次に示します。
Imports System Imports System.EnterpriseServices Imports System.Reflection ' References: ' System.EnterpriseServices <MustRunInClientContext()> _ Public Class MustRunInClientContextAttribute_Ctor Inherits ServicedComponent End Class 'MustRunInClientContextAttribute_Ctor <MustRunInClientContext(False)> _ Public Class MustRunInClientContextAttribute_Ctor_Bool Inherits ServicedComponent End Class 'MustRunInClientContextAttribute_Ctor_Bool <MustRunInClientContext(False)> _ Public Class MustRunInClientContextAttribute_Value Inherits ServicedComponent Public Sub ValueExample() ' Get the MustRunInClientContextAttribute applied to the class. Dim attribute As MustRunInClientContextAttribute = CType(Attribute.GetCustomAttribute(Me.GetType(), GetType(MustRunInClientContextAttribute), False), MustRunInClientContextAttribute) ' Display the value of the attribute's Value property. MsgBox("MustRunInClientContextAttribute.Value: " & attribute.Value) End Sub 'ValueExample End Class 'MustRunInClientContextAttribute_Value
using System; using System.EnterpriseServices; using System.Reflection; // References: // System.EnterpriseServices [MustRunInClientContext] public class MustRunInClientContextAttribute_Ctor : ServicedComponent { } [MustRunInClientContext(false)] public class MustRunInClientContextAttribute_Ctor_Bool : ServicedComponent { } [MustRunInClientContext(false)] public class MustRunInClientContextAttribute_Value : ServicedComponent { public void ValueExample() { // Get the MustRunInClientContextAttribute applied to the class. MustRunInClientContextAttribute attribute = (MustRunInClientContextAttribute)Attribute.GetCustomAttribute( this.GetType(), typeof(MustRunInClientContextAttribute), false); // Display the value of the attribute's Value property. Console.WriteLine("MustRunInClientContextAttribute.Value: {0}" , attribute.Value); } }
import System.*; import System.EnterpriseServices.*; import System.Reflection.*; // References: // System.EnterpriseServices /** @attribute MustRunInClientContext() */ public class MustRunInClientContextAttribute_Ctor extends ServicedComponent { } //MustRunInClientContextAttribute_Ctor /** @attribute MustRunInClientContext(false) */ public class MustRunInClientContextAttribute_Ctor_Bool extends ServicedComponent { } //MustRunInClientContextAttribute_Ctor_Bool /** @attribute MustRunInClientContext(false) */ public class MustRunInClientContextAttribute_Value extends ServicedComponent { public void ValueExample() { // Get the MustRunInClientContextAttribute applied to the class. MustRunInClientContextAttribute attribute = (MustRunInClientContextAttribute)(Attribute.GetCustomAttribute( this.GetType(), MustRunInClientContextAttribute.class.ToType() , false)); // Display the value of the attribute's Value property. Console.WriteLine("MustRunInClientContextAttribute.Value: {0}" , (System.Boolean)attribute.get_Value()); } //ValueExample } //MustRunInClientContextAttribute_Value

System.Attribute
System.EnterpriseServices.MustRunInClientContextAttribute


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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からMustRunInClientContextAttribute クラスを検索する場合は、下記のリンクをクリックしてください。

- MustRunInClientContextAttribute クラスのページへのリンク