ExtensionsDirectoryInfoCreateFileAsync Method (DirectoryInfo, String, CreationCollisionOption) |
Namespace: Cauldron
public static Task<FileInfo> CreateFileAsync( this DirectoryInfo directoryInfo, string desiredName, CreationCollisionOption options )
Exception | Condition |
---|---|
ArgumentNullException | desiredName is null |
ArgumentException | desiredName is empty |
IOException | If file already exists. Only on FailIfExists |