RequestExtensions.As Method

This is called to adapt an object from a foreign app domain to a known interface in this appDomain This element is introduced in Windows PowerShell 5.0.


Namespace: Microsoft.OneGet.PackageProvider.Bootstrap
Assembly: Microsoft.OneGet.PackageProvider.Bootstrap (in Microsoft.OneGet.PackageProvider.Bootstrap.dll)

'Usage
Dim instance As Object
Dim returnValue As T

returnValue = RequestExtensions.As(instance)

[ExtensionAttribute] 
public static T As<T> (
	Object instance
)

GenericParameters

T

T

Parameters

instance

instance

Return Value

Returns {0}.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms


Show: