DVTk API
ValidateMediaFiles Method (mediaFileName, fileContentType, sopClassUid, sopInstanceUid, transferSyntaxUid)
DVTkDvtk.SessionsIMediaValidatorValidateMediaFiles(String, MediaFileContentType, String, String, String)
DVTk API

[This is preliminary documentation and is subject to change.]

Validate Media Storage File.
Declaration Syntax
C#Visual BasicVisual 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
)
Parameters
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.
Return Value
falseFalsefalse if the validation process failed.
Remarks
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.
Exceptions
ExceptionCondition
ArgumentNullExceptionArgument mediaFileNames is a nullNothingnullptr reference.
ArgumentException Argument mediaFileNames is an empty array of media file names.

Assembly: DVTK (Module: DVTK) Version: 0.0.0.0