DicomObjects.NetStandard Documentation
DicomObjects Namespace / WriteBehaviours Class / AllowOddLengths Property



In This Topic
    AllowOddLengths Property
    In This Topic
    Allows data to do be written with odd lengths
    Syntax
    'Declaration
     
    
    Public Property AllowOddLengths As Boolean
    'Usage
     
    
    Dim instance As WriteBehaviours
    Dim value As Boolean
     
    instance.AllowOddLengths = value
     
    value = instance.AllowOddLengths
    public bool AllowOddLengths {get; set;}
    public:
    property bool AllowOddLengths {
       bool get();
       void set (    bool value);
    }
    Remarks

    The default value of this property is derived from the AllowOddLengths value of the internal registry, which in turn has a default value of 0, causing this property to be false.

    Data written with this property set does not conform to the DICOM standard, and this property should only be used either for testing, or when re-writing faulty files in an environment where bit-preservation is expected.

    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