UserDataProtectionManager.ProtectStorageItemAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将存储项保护为指定的可用性。
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
返回
- 属性