Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DataServiceContext.TryGetUri Method

Retrieves the canonical URI associated with the specified entity, if available.

Namespace:  System.Data.Services.Client
Assembly:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)

member TryGetUri : 
        entity:Object * 
        identity:Uri byref -> bool

Parameters

entity
Type: System.Object
The entity identified by the identity.
identity
Type: System.Uri
The URI of the entity.

Return Value

Type: System.Boolean
Returns true if the canonical URI is returned in the out parameter. If the specified entity is not tracked by the DataServiceContext or is in the added state, no URI is available and false is returned.

ExceptionCondition
ArgumentNullException

When entity is a null reference (Nothing in Visual Basic).

Objects in the Added state do not yet have a URI.

Show:
© 2015 Microsoft