DicomObjects.NET Core Documentation
DicomObjects Namespace / DicomGlobal Class / IsDICOM Method / IsDICOM(Stream) Method
The Stream which carries the data



In This Topic
    IsDICOM(Stream) Method
    In This Topic
    A very simple method to test whether a stream contains valid DICOM
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function IsDICOM( _
       ByVal stream As Stream _
    ) As Boolean
    'Usage
     
    
    Dim stream As Stream
    Dim value As Boolean
     
    value = DicomGlobal.IsDICOM(stream)
    public static bool IsDICOM( 
       Stream stream
    )
    public:
    static bool IsDICOM( 
       Stream^ stream
    ) 

    Parameters

    stream
    The Stream which carries the data

    Return Value

    True if the byte 129 - 132 is 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