System.Security.SecureString.IsReadOnly Method

Indicates whether this secure string is marked read-only.

Syntax

public bool IsReadOnly ()

Returns

true if this secure string is marked read-only; otherwise, false.

Remarks

After an instance of System.Security.SecureString is marked read-only by the SecureString.MakeReadOnly method, any attempt to modify the value of the instance throws an InvalidOperationException. Use the SecureString.IsReadOnly method to test whether a System.Security.SecureString is read-only.

Requirements

Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0