Search notes:

System.Windows.IDataObject (interface)

System.Windows.IDataObject provides a format independent mechanism for transfering data.
A basic implementation of this interface is implemented with System.Windows.DataObject.

Methods

GetData()
GetDataPresent()
GetFormats()
SetData()
TryGetData()

Misc

add-type -assemblyName PresentationCore
$clip = [Windows.Clipboard]::GetDataObject()
if ('Csv' -in $clip.GetFormats()) {$mem = $clip.GetData('Csv'); $buf = [byte[]]::new($mem.length); $null = $mem.Read($buf, 0, $mem.length)}; $x = ''; foreach ($c in $buf) { $x = $x += [char]$c} ; $x
add-type -assemblyName PresentationCore

$clip = [Windows.Clipboard]::GetDataObject()

foreach ($fmt in $clip.GetFormats()) {
   try {
      $dat = $clip.GetData($fmt)
      $typ = $dat.GetType()
   }
   catch {
      $typ = '?'
   }

   '{0,-50} {1}' -f $fmt, $typ
}
Memory stream to text:
add-type -assemblyName PresentationCore

$clip = [Windows.Clipboard]::GetDataObject()

$mem = $clip.GetData('Xml Spreadsheet')
$enc = [System.Text.Encoding]::GetEncoding("ISO-8859-1")

$str = $enc.GetString($mem.ToArray())
write-host $str

See also

The method GetDataObject of System.Windows.Clipboard.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:51 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(51): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(66): id_of(Object(PDO), 'uri', '/notes/Microsof...') #2 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Microsof...', 1788353613, '216.73.217.21', 'Mozilla/5.0 App...', NULL) #3 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Microsoft/dot-net/namespaces-classes/System/Windows/IDataObject(86): insert_webrequest() #4 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 51