PermissionSet.IsReadOnly 属性

定义

获取一个值,该值指示集合是否为只读。

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

属性值

Boolean

总是为 false

示例

下面的代码示例显示属性返回 IsReadOnly 的值。 此代码示例是为 PermissionSet 类提供的一个更大示例的一部分。

// Display the value of the IsReadOnly property.
Console::WriteLine( "IsReadOnly property = {0}", ps1->IsReadOnly );
// Display the value of the IsReadOnly property.
Console.WriteLine("IsReadOnly property = " + ps1.IsReadOnly);
' Display the value of the IsReadOnly property.
Console.WriteLine("IsReadOnly property = " & ps1.IsReadOnly)

注解

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

适用于