PackageProviderManager
Namespace: AnyPackage.Provider
This class is used to manage package providers.
public static class PackageProviderManager
Inheritance Object → PackageProviderManager
Methods
RegisterProvider(Guid, Type, PSModuleInfo)
Register a package provider.
public static void RegisterProvider(Guid id, Type type, PSModuleInfo module)
Parameters
id
Guid
The package provider ID.
type
Type
The type implementing the package provider.
module
PSModuleInfo
The module associated with the package provider.
RegisterProvider(Guid, Type, String)
Register a package provider.
public static void RegisterProvider(Guid id, Type type, string moduleName)
Parameters
id
Guid
The package provider ID.
type
Type
The type implementing the package provider.
moduleName
String
The module name associated with the package provider.
UnregisterProvider(Guid)
Unregister a package provider.
public static void UnregisterProvider(Guid id)
Parameters
id
Guid
The package provider identifier.
GetProvider(String, PackageProviderOperations)
internal static PackageProviderInfo GetProvider(string name, PackageProviderOperations operations)
Parameters
name
String
operations
PackageProviderOperations
Returns
GetProviders()
internal static IEnumerable<PackageProviderInfo> GetProviders()
Returns
IEnumerable<PackageProviderInfo>
GetProviders(String)
internal static IEnumerable<PackageProviderInfo> GetProviders(string name)
Parameters
name
String
Returns
IEnumerable<PackageProviderInfo>
GetProviders(PackageProviderOperations)
internal static IEnumerable<PackageProviderInfo> GetProviders(PackageProviderOperations operations)
Parameters
operations
PackageProviderOperations
Returns
IEnumerable<PackageProviderInfo>
GetProviders(String, PackageProviderOperations)
internal static IEnumerable<PackageProviderInfo> GetProviders(string name, PackageProviderOperations operations)
Parameters
name
String
operations
PackageProviderOperations
Returns
IEnumerable<PackageProviderInfo>
GetModuleInfo(String)
internal static PSModuleInfo GetModuleInfo(string name)
Parameters
name
String
Returns
PSModuleInfo