Share via


IStorageItemProperties.FolderRelativeId 屬性

定義

取得目前專案的識別碼。 此識別碼對於包含專案的查詢結果或 StorageFolder 而言是唯一的,而且可用來區分具有相同名稱的專案。

public:
 property Platform::String ^ FolderRelativeId { Platform::String ^ get(); };
winrt::hstring FolderRelativeId();
public string FolderRelativeId { get; }
var string = iStorageItemProperties.folderRelativeId;
Public ReadOnly Property FolderRelativeId As String

屬性值

String

Platform::String

winrt::hstring

查詢結果或 StorageFolder內專案的識別碼。

備註

目前的專案可以是檔案、資料夾或檔案群組。

當您使用 StorageFolder 物件上的其中一種方法建立查詢時,您會建立查詢結果物件。 視您呼叫的方法而定,您的查詢結果物件可能是 StorageFileQueryResultStorageFolderQueryResultStorageItemQueryResult 物件。

適用於