Leadtools.Dicom Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
RejectInvalidFileId Property
See Also 
Leadtools.Dicom Namespace > DicomDirOptions Structure : RejectInvalidFileId Property




Gets or sets a value indicating whether the methods of the DicomDir class that take a filename as a parameter should fail if the number of components in the File ID exceeds 8 or if the number of characters in any component of the File ID exceeds 8.

Syntax

Visual Basic (Declaration) 
Public Property RejectInvalidFileId As Boolean
Visual Basic (Usage)Copy Code
Dim instance As DicomDirOptions
Dim value As Boolean
 
instance.RejectInvalidFileId = value
 
value = instance.RejectInvalidFileId
C# 
public bool RejectInvalidFileId {get; set;}
Managed Extensions for C++ 
public: __property bool get_RejectInvalidFileId();
public: __property void set_RejectInvalidFileId( 
   bool value
);
C++/CLI 
public:
property bool RejectInvalidFileId {
   bool get();
   void set (bool value);
}

Return Value

true if the methods of the DicomDir class that take a filename as a parameter should fail if the number of components in the File ID exceeds 8 or if the number of characters in any component of the File ID exceeds 8 (the latter case is possible only for the last component, since the short format of filenames is used for File IDs); otherwise, false.

Example

For an example, refer to Reset.

Remarks

As an example, if the destination folder is specified as "C:\DICOM Images\", then the following filenames will be rejected if RejectInvalidFileId is set to true:

"C:\DICOM Images\Sub1\Sub2\Sub3\Sub4\Sub5\Sub6\Sub7\Sub8\Brain"

"C:\DICOM Images\Patient 1\CT-10-Knee.dic"

The first filename is rejected because the number of components in the File ID exceeds 8 (there are 9 components, starting from "Sub1"). The second filename is rejected because the number of characters in the last component, which is the short format of "CT-10-Knee.dic" (e.g., "CT-10-~1.dic") exceeds 8. On the other hand, the following filenames will not be rejected:

"C:\DICOM Images\Sub1\Sub2\Sub3\Sub4\Sub5\Sub6\Sub7\Brain"

"C:\DICOM Images\ Patient 1\Knee.dic"

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Dicom requires a Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features