Share via


SPServiceContextPipeBind.Read Method

Retrieves the SPServiceContext object that corresponds to the parameters that were passed to the current SPServiceContextPipeBind object when it was constructed.

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

Syntax

'Declaration
Public Function Read As SPServiceContext
'Usage
Dim instance As SPServiceContextPipeBind
Dim returnValue As SPServiceContext

returnValue = instance.Read()
public SPServiceContext Read()

Return Value

Type: Microsoft.SharePoint.SPServiceContext
Returns an SPServiceContext object, if one exists; otherwise, returns null.

See Also

Reference

SPServiceContextPipeBind Class

SPServiceContextPipeBind Members

Microsoft.SharePoint.PowerShell Namespace