Condividi tramite


CmdletProviderAttribute Class

Definition

Declares a class as a Cmdlet provider.

public ref class CmdletProviderAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
public sealed class CmdletProviderAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)>]
type CmdletProviderAttribute = class
    inherit Attribute
Public NotInheritable Class CmdletProviderAttribute
Inherits Attribute
Inheritance
CmdletProviderAttribute
Attributes

Remarks

The class must be derived from System.Management.Automation.Provider.CmdletProvider to be recognized by the runspace.

Constructors

CmdletProviderAttribute(String, ProviderCapabilities)

Constructor for the attribute.

Properties

ProviderCapabilities

Gets the flags that represent the capabilities of the provider.

ProviderName

Gets the name of the provider.

Applies to