Data ONTAP® PowerShell Toolkit

Switch to Data ONTAP Cluster-mode documentation.

Cmdlet: ConvertTo-SerializedString


NAME
ConvertTo-SerializedString

SYNOPSIS
Convert any .NET object that is marked as Serializable to a Base64-encoded s
tring.

SYNTAX
ConvertTo-SerializedString [-Input] <Object> [<CommonParameters>]


DESCRIPTION
Convert any .NET object that is marked as Serializable to a Base64-encoded s
tring.

This cmdlet is the companion of ConvertFrom-SerializedString.


PARAMETERS
-Input <Object>
The serializable object.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS
System.String


NOTES


Category: toolkit

-------------- Example 1 --------------

C:\PS>$str = Connect-NaController dunn | ConvertTo-SerializedString


Save a controller connection context for use later.






RELATED LINKS
ConvertFrom-SerializedString







 Data ONTAP® PowerShell Toolkit