SPCmdlet.WriteResult Method

Displays an object instance and writes it to the console screen or to the cmdlet pipeline.

Namespace:  Microsoft.SharePoint.PowerShell
Assembly:  Microsoft.SharePoint.PowerShell (in Microsoft.SharePoint.PowerShell.dll)

Syntax

'Declaration
Protected Sub WriteResult ( _
    outputInstance As Object _
)
'Usage
Dim outputInstance As Object

Me.WriteResult(outputInstance)
protected void WriteResult(
    Object outputInstance
)

Parameters

  • outputInstance
    Type: System.Object

    The object for output to screen or pipeline.

Remarks

If the cmdlet property DisposeOutputObjects is set to true, then the object is disposed after being outputted.

See Also

Reference

SPCmdlet Class

SPCmdlet Members

Microsoft.SharePoint.PowerShell Namespace