Share via


PropertyInformation.IsLocked Propriété

Définition

Obtient une valeur spécifiant si l'attribut de configuration est verrouillé.

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

Valeur de propriété

true si l'objet PropertyInformation est verrouillé ; sinon, false.

Exemples

L’exemple de code suivant montre comment utiliser la IsLocked propriété . Cet exemple de code fait partie d’un exemple plus grand fourni pour la PropertyInformation classe .

// Display the IsLocked property.
Console.WriteLine("IsLocked: {0}", propertyItem.IsLocked);
' Display the IsLocked property.
Console.WriteLine("IsLocked: {0}", propertyItem.IsLocked)

Remarques

La IsLocked propriété retourne true lorsque l’élément associé est verrouillé par la LockAttributes propriété ou LockAllAttributesExcept .

S’applique à