[This is preliminary documentation and is subject to change.]
Validate Media Storage File.
| C# | Visual Basic | Visual C++ |
bool ValidateMediaFiles( string mediaFileName, MediaFileContentType fileContentType, string sopClassUid, string sopInstanceUid, string transferSyntaxUid )
Function ValidateMediaFiles ( _ mediaFileName As String, _ fileContentType As MediaFileContentType, _ sopClassUid As String, _ sopInstanceUid As String, _ transferSyntaxUid As String _ ) As Boolean
bool ValidateMediaFiles( String^ mediaFileName, MediaFileContentType fileContentType, String^ sopClassUid, String^ sopInstanceUid, String^ transferSyntaxUid )
- mediaFileName (String)
- List of media fully qualified file name to validate.
- fileContentType (MediaFileContentType)
- Description of the file content.
- sopClassUid (String)
- Sop Class Uid of file content.
- sopInstanceUid (String)
- Sop Instance Uid of file content.
- transferSyntaxUid (String)
- Transfer Syntax Uid of file content.
falseFalsefalse if the validation process failed.
Typically this file should have the file-extension DCM. DVT does not check the file-extension.
The file can contain one of three types of data:
a) DICOM Media File with File Meta Information - "Part 10 format".
b) DIMSE CommandSet
c) DICOM DataSet
The file content is defined by the fileContentType argument.
If the file is either a DIMSE CommandSet or DataSet then the additional arguments sopClassUid,
sopInstanceUid and transferSyntaxUid are expected to be defined.
| Exception | Condition |
|---|---|
| ArgumentNullException | Argument mediaFileNames is a nullNothingnullptr reference. |
| ArgumentException |
Argument mediaFileNames is an empty array of media file names.
|