HttpStaticObjectsCollection.IsReadOnly Property

Definition

获取一个值,该值指示集合是否为只读。Gets a value indicating whether the collection is read-only.

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

Property Value

Boolean

始终返回 trueAlways returns true.

Examples

以下示例中的代码仅在集合为只读时才执行。The code in the following example executes only if the collection is read-only.

if (Application.StaticObjects.IsReadOnly)
{
   //...
}

If Application.StaticObjects.IsReadOnly Then
   '...
End If
   

Applies to