CompilationUnitManager.TryGetFileId(Uri, String) Method

Definition

Caution

Use GetFileId instead after ensuring that the URI is an absolute file URI.

Converts a URI into the file ID used during compilation if the URI is an absolute file URI.

[System.Obsolete("Use GetFileId instead after ensuring that the URI is an absolute file URI.")]
public static bool TryGetFileId (Uri? uri, out string fileId);
[<System.Obsolete("Use GetFileId instead after ensuring that the URI is an absolute file URI.")>]
static member TryGetFileId : Uri * string -> bool
Public Shared Function TryGetFileId (uri As Uri, ByRef fileId As String) As Boolean

Parameters

uri
Uri
fileId
String

Returns

Boolean

True if converting the URI to a file ID succeeded.

Attributes

Applies to