DicomObjects.NET Core Documentation
DicomObjects Namespace / DicomGlobal Class / IsDICOM Method / IsDICOM(String) Method
The full file path



In This Topic
    IsDICOM(String) Method
    In This Topic
    A very simple method to decide if a File is DICOM
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function IsDICOM( _
       ByVal Filename As String _
    ) As Boolean
    'Usage
     
    
    Dim Filename As String
    Dim value As Boolean
     
    value = DicomGlobal.IsDICOM(Filename)
    public static bool IsDICOM( 
       string Filename
    )
    public:
    static bool IsDICOM( 
       String^ Filename
    ) 

    Parameters

    Filename
    The full file path

    Return Value

    True if bytes 129 - 132 are "DICM" and the next 8 bytes contains the group 0 header data 02 00 00 00 55 4C 04 00
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also