Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Function Invoke-LoadMethod() {
$ClientObject = $(throw "Please provide an Client Object instance on which to invoke the generic method")
$ctx = $ClientObject.Context
$load = [Microsoft.SharePoint.Client.ClientContext].GetMethod("Load")
$type = $ClientObject.GetType()
$clientObjectLoad = $load.MakeGenericMethod($type)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.