次の方法で共有


URLConnection.UseCaches Property

Definition

Returns the value of this URLConnection's useCaches field. -or- Sets the value of the useCaches field of this URLConnection to the specified value.

public virtual bool UseCaches { [Android.Runtime.Register("getUseCaches", "()Z", "GetGetUseCachesHandler")] get; [Android.Runtime.Register("setUseCaches", "(Z)V", "GetSetUseCaches_ZHandler")] set; }
[<get: Android.Runtime.Register("getUseCaches", "()Z", "GetGetUseCachesHandler")>]
[<set: Android.Runtime.Register("setUseCaches", "(Z)V", "GetSetUseCaches_ZHandler")>]
member this.UseCaches : bool with get, set

Property Value

the value of this URLConnection's useCaches field.

Attributes

Exceptions

if this method attempts to change the flag after the connection has been established.

Remarks

Property getter documentation:

Returns the value of this URLConnection's useCaches field.

Java documentation for java.net.URLConnection.getUseCaches().

Property setter documentation:

Sets the value of the useCaches field of this URLConnection to the specified value.

Some protocols do caching of documents. Occasionally, it is important to be able to "tunnel through" and ignore the caches (e.g., the "reload" button in a browser). If the UseCaches flag on a connection is true, the connection is allowed to use whatever caches it can. If false, caches are to be ignored. The default value comes from DefaultUseCaches, which defaults to true.

Java documentation for java.net.URLConnection.setUseCaches(boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to