ConfigurationLockCollection.HasParentElements Propriedade

Definição

Obtém um valor que especifica se a coleção de objetos bloqueados tem elementos pai.Gets a value specifying whether the collection of locked objects has parent elements.

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

Valor da propriedade

Boolean

true se a ConfigurationLockCollection coleção tiver elementos pai; caso contrário, false .true if the ConfigurationLockCollection collection has parent elements; otherwise, false.

Exemplos

O exemplo de código a seguir demonstra como usar a HasParentElements propriedade.The following code example demonstrates how to use the HasParentElements property. Este exemplo de código faz parte de um exemplo maior fornecido para a ConfigurationLockCollection classe.This code example is part of a larger example provided for the ConfigurationLockCollection class.

// HasParentElements property.
Console.WriteLine("HasParentElements: {0}",
 lockedAttribList.HasParentElements);
' HasParentElements property.
Console.WriteLine("HasParentElements: {0}", _
 lockedAttribList.HasParentElements)

Aplica-se a