EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

Cmdlet Methods

(see also Protected Methods)
 NameDescription
public methodEquals  (Inherited from Object)
public methodGetHashCode  (Inherited from Object)
public methodGetResourceStringGets a resource string that corresponds to the specified resource base key and identifier.
public methodGetType  (Inherited from Object)
public methodInvokeOverloaded. Invokes a cmdlet object. The variants of this method can invoke a cmdlet that returns a collection of results or a strongly-typed enumerator.
public methodShouldContinueOverloaded. Requests confirmation of an operation from the user. This is typically a second query to the user. The variants of this method can send the query with or without providing yesToall or noToall options to the user.
public methodShouldProcessOverloaded. Requests confirmation from the user before an operation is performed. The variants of this method can be used to send the name of the resource to be changed, send the name of the resource and the operation to be performed, and more. The confirmation message that is displayed to the user is based on which variant of this method is called.
public methodThrowTerminatingErrorReports a terminating error when the cmdlet cannot continue, or when you do not want the cmdlet to continue to process records.
public methodToString  (Inherited from Object)
public methodTransactionAvailableDetermines whether the Start-Transaction cmdlet has been called and that there is a Windows PowerShell transaction available that the cmdlet can participate in. This method is introduced in Windows PowerShell 2.0.
public methodWriteCommandDetailWrites information to the execution log of the pipeline.
public methodWriteDebugWrites a debug message to the host.
public methodWriteErrorReports a nonterminating error to the error pipeline when the cmdlet cannot process a record but can continue to process other records.
public methodWriteObjectOverloaded. Writes an object to the output pipeline. The variants of this method can be used to write a single object or an object that can be enumerated.
public methodWriteProgressWrites a progress record to the host.
public methodWriteVerboseWrites a general user-level message to the pipeline. These messages can help describe what the cmdlet is doing.
public methodWriteWarningWrites a warning message that can be displayed.

(see also Extension Methods)
 NameDescription
protected methodBeginProcessingProvides a one-time, preprocessing functionality for the cmdlet.
protected methodEndProcessingProvides a one-time, post-processing functionality for the cmdlet.
protected methodFinalize  (Inherited from Object)
protected methodMemberwiseClone  (Inherited from Object)
protected methodProcessRecordProvides a record-by-record processing functionality for the cmdlet.
protected methodStopProcessingStops processing records when the user stops the cmdlet asynchronously.

  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.)


Mostrar:
© 2015 Microsoft