DicomObjects.NET.V8
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: .NET CLR 3.5 or higher

    See Also