DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomGlobal Class / IsEncrypted Method
File to test
Example

In This Topic
    IsEncrypted Method
    In This Topic
    Tests whether a DICOM file is encrypted according the CMS encoding defined in DICOM supplement 895
    Syntax
    'Declaration
     
    
    Public Shared Function IsEncrypted( _
       ByVal Filename As System.String _
    ) As System.Boolean
    public static System.bool IsEncrypted( 
       System.string Filename
    )

    Parameters

    Filename
    File to test

    Return Value

    True if file is encrypted
    Example
    string filename = "your_dicom_image.dcm"; // replace with the actual path
    var isEncrypted = DicomGlobal.IsEncrypted(filename);
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also