Language

StorageManager.FromContext(Context) Method

Definition

Gets the storage manager from the specified context.

public static Android.OS.Storage.StorageManager? FromContext(Android.Content.Context context);
static member FromContext : Android.Content.Context -> Android.OS.Storage.StorageManager

Parameters

context
Context

The context from which to request the storage service.

Returns

The context's storage service as a StorageManager, or null if the service is unavailable or is not a storage manager.

Remarks

This .NET helper calls GetSystemService(String) with StorageService and converts the result to StorageManager.

.NET for Android implementation of StorageManager.FromContext.

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