JustInTimeActivationAttribute.Value Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the value of the JustInTimeActivationAttribute setting.
public:
property bool Value { bool get(); };
public bool Value { get; }
member this.Value : bool
Public ReadOnly Property Value As Boolean
Property Value
true
if JIT activation is enabled; otherwise, false
. The default is true
.
Examples
The following code example gets the value of a JustInTimeActivation
attribute's Value property.
[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
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.