CmdletProviderAttribute(String, ProviderCapabilities) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Constructor for the attribute.
public:
CmdletProviderAttribute(System::String ^ providerName, System::Management::Automation::Provider::ProviderCapabilities providerCapabilities);
public CmdletProviderAttribute (string providerName, System.Management.Automation.Provider.ProviderCapabilities providerCapabilities);
new System.Management.Automation.Provider.CmdletProviderAttribute : string * System.Management.Automation.Provider.ProviderCapabilities -> System.Management.Automation.Provider.CmdletProviderAttribute
Public Sub New (providerName As String, providerCapabilities As ProviderCapabilities)
Parameters
- providerName
- String
The provider name.
- providerCapabilities
- ProviderCapabilities
An enumeration of the capabilities that the provider implements beyond the default capabilities that are required.
Exceptions
If providerName
is null or empty.
If providerName
contains any of the following characters: \ [ ] ? * :