共用方式為


IsolatedWindowsHostMessenger.GetFileId(String) 方法

定義

已取代。 取得在隔離 Windows 環境中開啟之檔案的唯一標識符。

public:
 static Platform::Guid GetFileId(Platform::String ^ filePath);
 static winrt::guid GetFileId(winrt::hstring const& filePath);
/// [Windows.Foundation.Metadata.Deprecated("IsolatedWindowsHostMessenger is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 327680, "Windows.Security.Isolation.IsolatedWindowsEnvironmentContract")]
 static winrt::guid GetFileId(winrt::hstring const& filePath);
public static Guid GetFileId(string filePath);
[Windows.Foundation.Metadata.Deprecated("IsolatedWindowsHostMessenger is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 327680, "Windows.Security.Isolation.IsolatedWindowsEnvironmentContract")]
public static Guid GetFileId(string filePath);
function getFileId(filePath)
Public Shared Function GetFileId (filePath As String) As Guid

參數

filePath
String

Platform::String

winrt::hstring

主機上檔案的路徑。

傳回

Guid

Platform::Guid

winrt::guid

Guid

屬性

備註

警告

這是已被取代的 API。

適用於