共用方式為


PackageManager.FindPackageVolume(String) 方法

定義

取得指定的磁片區。

public:
 virtual PackageVolume ^ FindPackageVolume(Platform::String ^ volumeName) = FindPackageVolume;
/// [Windows.Foundation.Metadata.Overload("FindPackageVolumeByName")]
PackageVolume FindPackageVolume(winrt::hstring const& volumeName);
[Windows.Foundation.Metadata.Overload("FindPackageVolumeByName")]
public PackageVolume FindPackageVolume(string volumeName);
function findPackageVolume(volumeName)
Public Function FindPackageVolume (volumeName As String) As PackageVolume

參數

volumeName
String

Platform::String

winrt::hstring

磁片區媒體識別碼,這是 GUID 值。

傳回

要求的磁片區。

屬性

適用於

另請參閱