Request.CloneRequest Method
This element is introduced in Windows PowerShell 5.0.
Namespace: Microsoft.OneGet.MetaProvider.PowerShell
Assembly: Microsoft.OneGet.MetaProvider.PowerShell (in Microsoft.OneGet.MetaProvider.PowerShell.dll)
Usage
'Usage
Dim instance As Request
Dim options As Hashtable
Dim sources As ArrayList
Dim credential As PSCredential
Dim returnValue As MarshalByRefObject
returnValue = instance.CloneRequest(options, sources, credential)
Syntax
'Declaration
<SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed", Justification:="This is required for the PowerShell Providers.")> _
Public Function CloneRequest ( _
<OptionalAttribute> Optional options As Hashtable = Nothing, _
<OptionalAttribute> Optional sources As ArrayList = Nothing, _
<OptionalAttribute> Optional credential As PSCredential = Nothing _
) As MarshalByRefObject
[SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed", Justification="This is required for the PowerShell Providers.")]
public MarshalByRefObject CloneRequest (
[OptionalAttribute] Hashtable options,
[OptionalAttribute] ArrayList sources,
[OptionalAttribute] PSCredential credential
)
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1026:DefaultParametersShouldNotBeUsed", Justification=L"This is required for the PowerShell Providers.")]
public:
MarshalByRefObject^ CloneRequest (
[OptionalAttribute] Hashtable^ options,
[OptionalAttribute] ArrayList^ sources,
[OptionalAttribute] PSCredential^ credential
)
/** @attribute SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed", Justification="This is required for the PowerShell Providers.") */
public MarshalByRefObject CloneRequest (
/** @attribute OptionalAttribute() */ Hashtable options,
/** @attribute OptionalAttribute() */ ArrayList sources,
/** @attribute OptionalAttribute() */ PSCredential credential
)
SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed", Justification="This is required for the PowerShell Providers.")
public function CloneRequest (
options : Hashtable,
sources : ArrayList,
credential : PSCredential
) : MarshalByRefObject
Parameters
- options
- sources
- credential
Return Value
Returns MarshalByRefObject.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Target Platforms
See Also
Reference
Request Class
Request Members
Microsoft.OneGet.MetaProvider.PowerShell Namespace