Share via


UserDataProtectionManager.ProtectStorageItemAsync Method

Definition

Protects a storage item to the specified availability.

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)

Parameters

storageItem
IStorageItem
availability
UserDataAvailability

Returns

Attributes

Applies to