CmdletBindingAttribute Members

Identifies a function as an advanced function that acts in a way that is similar to a cmdlet. This attribute is used by script developers when writing functions in place of writing compiled cmdlets. This class is introduced in Windows PowerShell 2.0.

The following tables list the members exposed by the CmdletBindingAttribute type.

  Name Description
  CmdletBindingAttribute Initializes a new instance of the CmdletBindingAttribute class. This constructor is introduced by Windows PowerShell 2.0.
Top

  Name Description
public property ConfirmImpact  Gets or sets the impact level, which is used when the user requests confirmation using the $ConfirmPreference shell variable. This property is introduced in Windows PowerShell 2.0. (Inherited from CmdletCommonMetadataAttribute)
public property DefaultParameterSetName  Gets or sets the parameter set that is used when Windows PowerShell cannot determine the parameter set to use based on the specified parameters. This property is introduced in Windows PowerShell 2.0. (Inherited from CmdletCommonMetadataAttribute)
public property HelpUri  Gets or sets a HelpUri value that indicates the location of online help. This is used by Get-Help to retrieve help content when -Online is specified. TBD. Introduced in Windows PowerShell 3.0. (Inherited from CmdletCommonMetadataAttribute)
public property PositionalBinding Gets or sets a value that indicates whether to auto-generate appropriate parameter metadata to support positional parameters if the script has not specified multiple parameter sets or positions explicitly via the ParameterAttribute. TBD. Introduced in Windows PowerShell 3.0.
public property RemotingCapability  Gets or sets the RemotingBehavior value that declares how this cmdlet should interact with ambient remoting. Introduced in Windows PowerShell 3.0. (Inherited from CmdletCommonMetadataAttribute)
public property SupportsPaging  Gets or sets a value that indicates whether the cmdlet supports paging. Introduced in Windows PowerShell 3.0. (Inherited from CmdletCommonMetadataAttribute)
public property SupportsShouldProcess  Gets or sets a value that indicates whether calls to the ShouldProcess method are supported. This call is used to request confirmation from the user before the operation is performed. This property is introduced in Windows PowerShell 2.0. (Inherited from CmdletCommonMetadataAttribute)
public property SupportsTransactions  Gets or sets a value that indicates whether the action of the command can be accepted or rolled back within a Windows PowerShell transaction. This property is introduced in Windows PowerShell 2.0. (Inherited from CmdletCommonMetadataAttribute)
public property TypeId  (Inherited from Attribute)
Top

(see also Protected Methods)
 NameDescription
public methodEquals  Overridden. (Inherited from Object)
public methodGetHashCode  Overridden. (Inherited from Object)
public methodGetType  (Inherited from Object)
public methodIsDefaultAttribute  (Inherited from Attribute)
public methodMatch  (Inherited from Attribute)
public methodToString  (Inherited from Object)
Top

(see also Extension Methods)
 NameDescription
protected methodFinalize  (Inherited from Object)
protected methodMemberwiseClone  (Inherited from Object)
Top

  Name Description
public extension method As  Use this method to adapt an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  This is called to adapt an object from a foreign app domain to a known interface in this appDomainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method As  Adapts an object from a foreign app domain to a known interface in this app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Use this method to adapt and extend an object so that you can pass it to a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  This is called to adapt and extend an object that we wish to pass to a foreign app domainThis element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method Extend  Used to extend an object with an interface from a foreign app domain.This element is introduced in Windows PowerShell 5.0. (Defined by RequestExtensions.)
public extension method ToEnumerable  This element is introduced in Windows PowerShell 5.0. (Defined by CollectionExtensions.)
Top

  Name Description
  GetIDsOfNames  (Inherited from Attribute)
  GetTypeInfo  (Inherited from Attribute)
  GetTypeInfoCount  (Inherited from Attribute)
  Invoke  (Inherited from Attribute)
Top


Show: