Megosztás a következőn keresztül:


SyncStateContract.Helpers.Set Method

Definition

Assigns the data array as the sync state for the given account.

[Android.Runtime.Register("set", "(Landroid/content/ContentProviderClient;Landroid/net/Uri;Landroid/accounts/Account;[B)V", "")]
public static void Set (Android.Content.ContentProviderClient? provider, Android.Net.Uri? uri, Android.Accounts.Account? account, byte[]? data);
[<Android.Runtime.Register("set", "(Landroid/content/ContentProviderClient;Landroid/net/Uri;Landroid/accounts/Account;[B)V", "")>]
static member Set : Android.Content.ContentProviderClient * Android.Net.Uri * Android.Accounts.Account * byte[] -> unit

Parameters

provider
ContentProviderClient

the ContentProviderClient that is to be used to communicate with the android.content.ContentProvider that contains the sync state.

uri
Uri

the uri of the sync state

account
Account

the Account whose sync state should be set

data
Byte[]

the byte[] that contains the sync state

Attributes

Exceptions

if there is a failure communicating with the remote ContentProvider

Remarks

Assigns the data array as the sync state for the given account.

Java documentation for android.provider.SyncStateContract.Helpers.set(android.content.ContentProviderClient, android.net.Uri, android.accounts.Account, byte[]).

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