IAspireStore.GetFileNameWithContent 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.
Overloads
GetFileNameWithContent(String, Stream) |
Gets a deterministic file path that is a copy of the content from the provided stream. The resulting file name will depend on the content of the stream. |
GetFileNameWithContent(String, String) |
Gets a deterministic file path that is a copy of the |
GetFileNameWithContent(String, Stream)
- Source:
- IAspireStore.cs
Gets a deterministic file path that is a copy of the content from the provided stream. The resulting file name will depend on the content of the stream.
public string GetFileNameWithContent(string filenameTemplate, System.IO.Stream contentStream);
abstract member GetFileNameWithContent : string * System.IO.Stream -> string
Public Function GetFileNameWithContent (filenameTemplate As String, contentStream As Stream) As String
Parameters
- filenameTemplate
- String
A file name to base the result on.
- contentStream
- Stream
A stream containing the content.
Returns
A deterministic file path with the same content as the provided stream.
Applies to
GetFileNameWithContent(String, String)
- Source:
- IAspireStore.cs
Gets a deterministic file path that is a copy of the sourceFilename
.
The resulting file name will depend on the content of the file.
public string GetFileNameWithContent(string filenameTemplate, string sourceFilename);
abstract member GetFileNameWithContent : string * string -> string
Public Function GetFileNameWithContent (filenameTemplate As String, sourceFilename As String) As String
Parameters
- filenameTemplate
- String
A file name to base the result on.
- sourceFilename
- String
An existing file.
Returns
A deterministic file path with the same content as sourceFilename
.
Exceptions
Thrown when the source file does not exist.