UserDataProtectionManager.ProtectStorageItemAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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