다음을 통해 공유


JustInTimeActivationAttribute.Value 속성

정의

JustInTimeActivationAttribute 설정의 값을 가져옵니다.

public:
 property bool Value { bool get(); };
public bool Value { get; }
member this.Value : bool
Public ReadOnly Property Value As Boolean

속성 값

JIT 활성화가 사용되면 true이고, 그렇지 않으면 false입니다. 기본값은 true입니다.

예제

다음 코드 예제에서는 값을 가져옵니다를 JustInTimeActivation 특성의 Value 속성입니다.

[JustInTimeActivation(false)]
public class JITAAttribute_Value : ServicedComponent
{
    public void ValueExample()
    {
        // Get the JustInTimeActivationAttribute applied to the class.
        JustInTimeActivationAttribute attribute =
            (JustInTimeActivationAttribute)Attribute.GetCustomAttribute(
            this.GetType(),
            typeof(JustInTimeActivationAttribute),
            false);

        // Display the value of the attribute's Value property.
        Console.WriteLine("JustInTimeActivationAttribute.Value: {0}",
            attribute.Value);
    }
}
<JustInTimeActivation(False)>  _
Public Class JITAAttribute_Value
    Inherits ServicedComponent
    
    Public Sub ValueExample() 
        ' Get the JustInTimeActivationAttribute applied to the class.
        Dim attribute As JustInTimeActivationAttribute = CType(Attribute.GetCustomAttribute(Me.GetType(), GetType(JustInTimeActivationAttribute), False), JustInTimeActivationAttribute)
        
        ' Display the value of the attribute's Value property.
        MsgBox("JustInTimeActivationAttribute.Value: " & attribute.Value)
    
    End Sub
End Class

적용 대상