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

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

DefaultDependencyAttribute クラス

メモ : このクラスは、.NET Framework version 2.0新しく追加されたものです。

共通言語ランタイム (CLR: Common Language Runtime) に対して依存関係読み込まれ可能性を示すヒント提供します。このクラスは、親が DependencyAttribute 属性指定しない場合使用するヒントを示すために依存アセンブリ使用されます。このクラス継承できません。

名前空間: System.Runtime.CompilerServices
アセンブリ: mscorlib (mscorlib.dll 内)
構文構文

<SerializableAttribute> _
<AttributeUsageAttribute(AttributeTargets.Assembly)> _
Public NotInheritable Class
 DefaultDependencyAttribute
    Inherits Attribute
Dim instance As DefaultDependencyAttribute
[SerializableAttribute] 
[AttributeUsageAttribute(AttributeTargets.Assembly)] 
public sealed class DefaultDependencyAttribute
 : Attribute
[SerializableAttribute] 
[AttributeUsageAttribute(AttributeTargets::Assembly)] 
public ref class DefaultDependencyAttribute
 sealed : public Attribute
/** @attribute SerializableAttribute() */ 
/** @attribute AttributeUsageAttribute(AttributeTargets.Assembly) */ 
public final class DefaultDependencyAttribute
 extends Attribute
SerializableAttribute 
AttributeUsageAttribute(AttributeTargets.Assembly) 
public final class DefaultDependencyAttribute
 extends Attribute
解説解説
使用例使用例

DefaultDependencyAttribute 属性アセンブリ適用して依存関係読み込まれ可能性があることを指定する方法次のコード例示します

Imports System.Runtime.CompilerServices

<Assembly: DefaultDependencyAttribute(LoadHint.Always)> 
Module Program


    Sub Main(ByVal args() As
 String)
        Console.WriteLine("The DefaultDependencyAttribute attribute
 was applied.")
    End Sub


End Module
using System;
using System.Runtime.CompilerServices;

[assembly: DefaultDependencyAttribute(LoadHint.Always)]
class Program
{
    
    static void Main(string[]
 args)
    {

        Console.WriteLine("The DefaultDependencyAttribute attribute was applied.");

    }
}
継承階層継承階層
System.Object
   System.Attribute
    System.Runtime.CompilerServices.DefaultDependencyAttribute
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DefaultDependencyAttribute メンバ
System.Runtime.CompilerServices 名前空間
DependencyAttribute
LoadHint
LoadHint



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

辞書ショートカット

すべての辞書の索引

「DefaultDependencyAttribute クラス」の関連用語

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

   

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



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

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

©2024 GRAS Group, Inc.RSS