Share via


DefaultDependencyAttribute(LoadHint) 생성자

정의

지정된 DefaultDependencyAttribute 바인딩을 사용하여 LoadHint 클래스의 새 인스턴스를 초기화합니다.

public:
 DefaultDependencyAttribute(System::Runtime::CompilerServices::LoadHint loadHintArgument);
public DefaultDependencyAttribute (System.Runtime.CompilerServices.LoadHint loadHintArgument);
new System.Runtime.CompilerServices.DefaultDependencyAttribute : System.Runtime.CompilerServices.LoadHint -> System.Runtime.CompilerServices.DefaultDependencyAttribute
Public Sub New (loadHintArgument As LoadHint)

매개 변수

loadHintArgument
LoadHint

기본 바인딩 설정을 나타내는 LoadHint 값 중 하나입니다.

예제

다음 코드 예제에서는 어셈블리에 특성을 적용 DefaultDependencyAttribute 하여 종속성이 로드될 가능성이 있음을 지정하는 방법을 보여 줍니다.

using System;
using System.Runtime.CompilerServices;

[assembly: DefaultDependencyAttribute(LoadHint.Always)]
class Program
{

    static void Main(string[] args)
    {

        Console.WriteLine("The DefaultDependencyAttribute attribute was applied.");
    }
}
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

적용 대상