DataServiceContext.TryGetUri(Object, Uri) 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.
Retrieves the canonical URI associated with the specified entity, if available.
public:
bool TryGetUri(System::Object ^ entity, [Runtime::InteropServices::Out] Uri ^ % identity);
public bool TryGetUri (object entity, out Uri identity);
member this.TryGetUri : obj * Uri -> bool
Public Function TryGetUri (entity As Object, ByRef identity As Uri) As Boolean
Parameters
- entity
- Object
The entity identified by the identity
.
- identity
- Uri
The URI of the entity.
Returns
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.
Exceptions
When entity
is null
.
Remarks
Objects in the Added state do not yet have a URI.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για