Sdílet prostřednictvím


Contacts.People.AddToGroup Method

Definition

Overloads

AddToGroup(ContentResolver, Int64, Int64)
Obsolete.

Adds a person to a group.

AddToGroup(ContentResolver, Int64, String)
Obsolete.

Adds a person to a group referred to by name.

AddToGroup(ContentResolver, Int64, Int64)

Caution

deprecated

Adds a person to a group.

[Android.Runtime.Register("addToGroup", "(Landroid/content/ContentResolver;JJ)Landroid/net/Uri;", "")]
[System.Obsolete("deprecated")]
public static Android.Net.Uri? AddToGroup (Android.Content.ContentResolver? resolver, long personId, long groupId);
[<Android.Runtime.Register("addToGroup", "(Landroid/content/ContentResolver;JJ)Landroid/net/Uri;", "")>]
[<System.Obsolete("deprecated")>]
static member AddToGroup : Android.Content.ContentResolver * int64 * int64 -> Android.Net.Uri

Parameters

resolver
ContentResolver

the resolver to use

personId
Int64

the person to add to the group

groupId
Int64

the group to add the person to

Returns

Uri

the URI of the group membership row

Attributes

Remarks

Adds a person to a group.

This member is deprecated. see android.provider.ContactsContract

Java documentation for android.provider.Contacts.People.addToGroup(android.content.ContentResolver, long, long).

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

AddToGroup(ContentResolver, Int64, String)

Caution

deprecated

Adds a person to a group referred to by name.

[Android.Runtime.Register("addToGroup", "(Landroid/content/ContentResolver;JLjava/lang/String;)Landroid/net/Uri;", "")]
[System.Obsolete("deprecated")]
public static Android.Net.Uri? AddToGroup (Android.Content.ContentResolver? resolver, long personId, string? groupName);
[<Android.Runtime.Register("addToGroup", "(Landroid/content/ContentResolver;JLjava/lang/String;)Landroid/net/Uri;", "")>]
[<System.Obsolete("deprecated")>]
static member AddToGroup : Android.Content.ContentResolver * int64 * string -> Android.Net.Uri

Parameters

resolver
ContentResolver

the resolver to use

personId
Int64

the person to add to the group

groupName
String

the name of the group to add the contact to

Returns

Uri

the URI of the group membership row

Attributes

Exceptions

if the group can't be found

Remarks

Adds a person to a group referred to by name.

This member is deprecated. see android.provider.ContactsContract

Java documentation for android.provider.Contacts.People.addToGroup(android.content.ContentResolver, long, java.lang.String).

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