Freigeben über


HttpStaticObjectsCollection.IsReadOnly-Eigenschaft

Ruft einen Wert ab, der angibt, ob die Auflistung schreibgeschützt ist.

Namespace: System.Web
Assembly: System.Web (in system.web.dll)

Syntax

'Declaration
Public ReadOnly Property IsReadOnly As Boolean
'Usage
Dim instance As HttpStaticObjectsCollection
Dim value As Boolean

value = instance.IsReadOnly
public bool IsReadOnly { get; }
public:
property bool IsReadOnly {
    bool get ();
}
/** @property */
public boolean get_IsReadOnly ()
public function get IsReadOnly () : boolean

Eigenschaftenwert

Gibt immer true zurück.

Beispiel

Der Code im folgenden Beispiel wird nur ausgeführt, wenn die Auflistung schreibgeschützt ist.

If Application.StaticObjects.IsReadOnly Then
   '...
End If
   
if (Application.StaticObjects.IsReadOnly)
{
   //...
}
   
if (get_Application().get_StaticObjects().get_IsReadOnly())    {
    //...
}
if(Application.StaticObjects.IsReadOnly){
   //...
}
   

Plattformen

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

HttpStaticObjectsCollection-Klasse
HttpStaticObjectsCollection-Member
System.Web-Namespace