CompilationUnitManager.TryGetFileId(Uri, String) 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.
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
True if converting the URI to a file ID succeeded.
- Attributes