MustRunInClientContextAttribute クラスとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > MustRunInClientContextAttribute クラスの意味・解説 

MustRunInClientContextAttribute クラス

可能な場合作成者コンテキスト属性付きオブジェクト強制的に作成します。このクラス継承できません。

名前空間: System.EnterpriseServices
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)
構文構文

<ComVisibleAttribute(False)> _
<AttributeUsageAttribute(AttributeTargets.Class, Inherited:=True)> _
Public NotInheritable Class
 MustRunInClientContextAttribute
    Inherits Attribute
Dim instance As MustRunInClientContextAttribute
[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
/** @attribute ComVisibleAttribute(false) */ 
/** @attribute AttributeUsageAttribute(AttributeTargets.Class, Inherited=true)
 */ 
public final class MustRunInClientContextAttribute
 extends Attribute
ComVisibleAttribute(false) 
AttributeUsageAttribute(AttributeTargets.Class, Inherited=true)
 
public final class MustRunInClientContextAttribute
 extends Attribute
解説解説
使用例使用例

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.Object
   System.Attribute
    System.EnterpriseServices.MustRunInClientContextAttribute
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からMustRunInClientContextAttribute クラスを検索した結果を表示しています。
Weblioに収録されているすべての辞書からMustRunInClientContextAttribute クラスを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からMustRunInClientContextAttribute クラス を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「MustRunInClientContextAttribute クラス」の関連用語

MustRunInClientContextAttribute クラスのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



MustRunInClientContextAttribute クラスのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS