DataServiceContext.TryGetUri Method
.NET Framework 4
Retrieves the canonical URI associated with the specified entity, if available.
Assembly: System.Data.Services.Client (in System.Data.Services.Client.dll)
Parameters
- entity
- Type: System.Object
The entity identified by the identity.
- identity
- Type: System.Uri%
The URI of the entity.
Return Value
Type: System.BooleanReturns 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.
| Exception | Condition |
|---|---|
| ArgumentNullException |
When entity is null. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.