PHAssetResourceManager.WriteData 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.
Asynchronously writes the data at the provided URL to the specified asset resource, and calls the provided completionHandler
when the write operation is complete.
[Foundation.Export("writeDataForAssetResource:toFile:options:completionHandler:")]
public virtual void WriteData (Photos.PHAssetResource forResource, Foundation.NSUrl fileURL, Photos.PHAssetResourceRequestOptions options, Action<Foundation.NSError> completionHandler);
abstract member WriteData : Photos.PHAssetResource * Foundation.NSUrl * Photos.PHAssetResourceRequestOptions * Action<Foundation.NSError> -> unit
override this.WriteData : Photos.PHAssetResource * Foundation.NSUrl * Photos.PHAssetResourceRequestOptions * Action<Foundation.NSError> -> unit
Parameters
- forResource
- PHAssetResource
The resource from which to get the data.
- fileURL
- NSUrl
The file to write to.
- options
- PHAssetResourceRequestOptions
Object that contains a progress handler and a value that specifes whether the network may be used. This parameter may be .
This parameter can be null
.
- Attributes