Export (0) Print
Expand All

PermissionSet.IsReadOnly Property

Gets a value indicating whether the collection is read-only.

[Visual Basic]
Public Overridable ReadOnly Property IsReadOnly As Boolean
[C#]
public virtual bool IsReadOnly {get;}
[C++]
public: __property virtual bool get_IsReadOnly();
[JScript]
public function get IsReadOnly() : Boolean;

Property Value

Always false.

Remarks

A PermissionSet cannot be read-only, so this property is always false.

Example

[Visual Basic] 
' Display the value of the IsReadOnly property.
Console.WriteLine("IsReadOnly property = " & ps1.IsReadOnly)

[C#] 
// Display the value of the IsReadOnly property.
Console.WriteLine("IsReadOnly property = " + ps1.IsReadOnly);

[C++] 
// Display the value of the IsReadOnly property.
Console::WriteLine(S"IsReadOnly property = {0}", __box(ps1->IsReadOnly));

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

PermissionSet Class | PermissionSet Members | System.Security Namespace

Show:
© 2014 Microsoft