PowerShellPackageProvider.AddPackageSource 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 PowerShellPackageProvider
Dim name As String
Dim location As String
Dim trusted As Boolean
Dim requestImpl As Object
instance.AddPackageSource(name, location, trusted, requestImpl)
Syntax
'Declaration
Public Sub AddPackageSource ( _
name As String, _
location As String, _
trusted As Boolean, _
requestImpl As Object _
)
public void AddPackageSource (
string name,
string location,
bool trusted,
Object requestImpl
)
public:
void AddPackageSource (
String^ name,
String^ location,
bool trusted,
Object^ requestImpl
)
public void AddPackageSource (
String name,
String location,
boolean trusted,
Object requestImpl
)
public function AddPackageSource (
name : String,
location : String,
trusted : boolean,
requestImpl : Object
)
Parameters
- name
- location
- trusted
- requestImpl
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
PowerShellPackageProvider Class
PowerShellPackageProvider Members
Microsoft.OneGet.MetaProvider.PowerShell Namespace