Method WriteFile
WriteFile(string, byte[], FileRegistry)
Utility method to write a file. The directory will be created if it does not exist.
선언
protected static bool WriteFile(string path, byte[] content, FileRegistry registry)
파라미터
| 타입 | 이름 | 설명 |
|---|---|---|
| string | path | The path of the file to write. |
| byte[] | content | The content of the file. |
| FileRegistry | registry | The file registry used to track all produced artifacts. |
반환
| 타입 | 설명 |
|---|---|
| bool | True if the file was written. |
WriteFile(string, string, FileRegistry)
Utility method to write a file. The directory will be created if it does not exist.
선언
protected static bool WriteFile(string path, string content, FileRegistry registry)
파라미터
| 타입 | 이름 | 설명 |
|---|---|---|
| string | path | The path of the file to write. |
| string | content | The content of the file. |
| FileRegistry | registry | The file registry used to track all produced artifacts. |
반환
| 타입 | 설명 |
|---|---|
| bool | True if the file was written. |