JustInTimeActivationAttribute.Value Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Mendapatkan nilai JustInTimeActivationAttribute pengaturan.
public:
property bool Value { bool get(); };
public bool Value { get; }
member this.Value : bool
Public ReadOnly Property Value As Boolean
Nilai Properti
true
jika aktivasi JIT diaktifkan; jika tidak, false
. Default adalah true
.
Contoh
Contoh kode berikut mendapatkan nilai JustInTimeActivation
properti atribut 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
Berlaku untuk
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.