ערוך

שתף באמצעות


ConfigurationLockCollection.IsReadOnly(String) Method

Definition

Verifies whether a specific configuration object is read-only.

public:
 bool IsReadOnly(System::String ^ name);
public bool IsReadOnly (string name);
member this.IsReadOnly : string -> bool
Public Function IsReadOnly (name As String) As Boolean

Parameters

name
String

The name of the configuration object to verify.

Returns

true if the specified configuration object in the ConfigurationLockCollection collection is read-only; otherwise, false.

Exceptions

The specified configuration object is not in the collection.

Examples

The following code example demonstrates how to use the IsReadOnly method. This code example is part of a larger example provided for the ConfigurationLockCollection class.

// IsReadOnly method. 
Console.WriteLine("IsReadOnly: {0}",
 lockedAttribList.IsReadOnly("enabled"));
' IsReadOnly method. 
Console.WriteLine("IsReadOnly: {0}", _
 lockedAttribList.IsReadOnly("enabled"))

Applies to