Поделиться через


UserDataProtectionManager.ProtectStorageItemAsync Метод

Определение

Защищает элемент хранилища до указанной доступности.

public:
 virtual IAsyncOperation<UserDataStorageItemProtectionStatus> ^ ProtectStorageItemAsync(IStorageItem ^ storageItem, UserDataAvailability availability) = ProtectStorageItemAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<UserDataStorageItemProtectionStatus> ProtectStorageItemAsync(IStorageItem const& storageItem, UserDataAvailability const& availability);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<UserDataStorageItemProtectionStatus> ProtectStorageItemAsync(IStorageItem storageItem, UserDataAvailability availability);
function protectStorageItemAsync(storageItem, availability)
Public Function ProtectStorageItemAsync (storageItem As IStorageItem, availability As UserDataAvailability) As IAsyncOperation(Of UserDataStorageItemProtectionStatus)

Параметры

storageItem
IStorageItem
availability
UserDataAvailability

Возвращаемое значение

Атрибуты

Применяется к