Function DesktopFile.DesktopReadOptions.this

Setting parameters in any order, leaving not mentioned ones in default state.

this(Args...) (
  Args args
) pure nothrow @nogc @safe;

Example

DesktopReadOptions options;

options = DesktopReadOptions(
    ExtensionGroupPolicy.skip,
    UnknownGroupPolicy.preserve,
    ActionGroupPolicy.skip,
    DuplicateKeyPolicy.skip,
    DuplicateGroupPolicy.preserve,
    No.preserveComments
);
assert(options.unknownGroupPolicy == UnknownGroupPolicy.preserve);
assert(options.actionGroupPolicy == ActionGroupPolicy.skip);
assert(options.extensionGroupPolicy == ExtensionGroupPolicy.skip);
assert(options.duplicateGroupPolicy == DuplicateGroupPolicy.preserve);
assert(options.duplicateKeyPolicy == DuplicateKeyPolicy.skip);
assert(!options.preserveComments);
}