Request.YieldPackageSource Method

Used by a provider to return fields for a package source (repository). 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 name As String
Dim location As String
Dim isTrusted As Boolean
Dim isRegistered As Boolean
Dim isValidated As Boolean
Dim returnValue As Boolean

returnValue = instance.YieldPackageSource(name, location, isTrusted, isRegistered, isValidated)

Syntax

'Declaration
Public MustOverride Function YieldPackageSource ( _
    name As String, _
    location As String, _
    isTrusted As Boolean, _
    isRegistered As Boolean, _
    isValidated As Boolean _
) As Boolean
public abstract bool YieldPackageSource (
    string name,
    string location,
    bool isTrusted,
    bool isRegistered,
    bool isValidated
)
public:
virtual bool YieldPackageSource (
    String^ name, 
    String^ location, 
    bool isTrusted, 
    bool isRegistered, 
    bool isValidated
) abstract
public abstract boolean YieldPackageSource (
    String name, 
    String location, 
    boolean isTrusted, 
    boolean isRegistered, 
    boolean isValidated
)
public abstract function YieldPackageSource (
    name : String, 
    location : String, 
    isTrusted : boolean, 
    isRegistered : boolean, 
    isValidated : boolean
) : boolean

Parameters

  • name
  • location
  • isTrusted
  • isRegistered
  • isValidated

Return Value

Returns Boolean.

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