ContactsContract.Contacts.GetLookupUri Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| GetLookupUri(ContentResolver, Uri) |
Builds a |
| GetLookupUri(Int64, String) |
Build a |
GetLookupUri(ContentResolver, Uri)
Builds a #CONTENT_LOOKUP_URI style Uri describing the
requested Contacts entry.
[Android.Runtime.Register("getLookupUri", "(Landroid/content/ContentResolver;Landroid/net/Uri;)Landroid/net/Uri;", "")]
public static Android.Net.Uri? GetLookupUri(Android.Content.ContentResolver? resolver, Android.Net.Uri? contactUri);
[<Android.Runtime.Register("getLookupUri", "(Landroid/content/ContentResolver;Landroid/net/Uri;)Landroid/net/Uri;", "")>]
static member GetLookupUri : Android.Content.ContentResolver * Android.Net.Uri -> Android.Net.Uri
Parameters
- resolver
- ContentResolver
- contactUri
- Uri
A #CONTENT_URI row, or an existing
#CONTENT_LOOKUP_URI to attempt refreshing.
Returns
- Attributes
Remarks
Builds a #CONTENT_LOOKUP_URI style Uri describing the requested Contacts entry.
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
GetLookupUri(Int64, String)
Build a #CONTENT_LOOKUP_URI lookup Uri using the
given ContactsContract.Contacts#_ID and #LOOKUP_KEY.
[Android.Runtime.Register("getLookupUri", "(JLjava/lang/String;)Landroid/net/Uri;", "")]
public static Android.Net.Uri? GetLookupUri(long contactId, string? lookupKey);
[<Android.Runtime.Register("getLookupUri", "(JLjava/lang/String;)Landroid/net/Uri;", "")>]
static member GetLookupUri : int64 * string -> Android.Net.Uri
Parameters
- contactId
- Int64
- lookupKey
- String
Returns
- Attributes
Remarks
Build a #CONTENT_LOOKUP_URI lookup Uri using the given ContactsContract.Contacts#_ID and #LOOKUP_KEY.
Returns null if unable to construct a valid lookup URI from the provided parameters.
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.