Cmdlet
Close-OfficeToml
Completes a live TOML document's lifetime without saving.
Syntax
Close-OfficeToml
-Document <TomlDocument>
[<CommonParameters>]#Parameter set:
DocumentExamples
Discard pending changes.
Close-OfficeToml -Document $documentRead a value and release the document.
$document = Open-OfficeToml -Path ./Cargo.toml
(Get-OfficeTomlNode -Document $document -Select 'package.version').Value
Close-OfficeToml -Document $documentParameters
- -Document TomlDocument
- TOML document to close.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.