JustInTimeActivationAttribute.Value Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient la valeur du paramètre JustInTimeActivationAttribute.
public:
property bool Value { bool get(); };
public bool Value { get; }
member this.Value : bool
Public ReadOnly Property Value As Boolean
Valeur de propriété
true
si JIT est activé ; sinon false
. La valeur par défaut est true
.
Exemples
L’exemple de code suivant obtient la valeur de la propriété d’un JustInTimeActivation
Value attribut.
[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
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de l’année 2024, nous abandonnerons progressivement le mécanisme de retour d’information GitHub Issues pour le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultez :Soumettre et afficher des commentaires pour