Freigeben über


CimCmdletAdapter Class

Definition

CIM-specific ObjectModelWrapper.

public ref class CimCmdletAdapter sealed : Microsoft::PowerShell::Cmdletization::SessionBasedCmdletAdapter<Microsoft::Management::Infrastructure::CimInstance ^, Microsoft::Management::Infrastructure::CimSession ^>, System::Management::Automation::IDynamicParameters
public sealed class CimCmdletAdapter : Microsoft.PowerShell.Cmdletization.SessionBasedCmdletAdapter<Microsoft.Management.Infrastructure.CimInstance,Microsoft.Management.Infrastructure.CimSession>, System.Management.Automation.IDynamicParameters
type CimCmdletAdapter = class
    inherit SessionBasedCmdletAdapter<CimInstance, CimSession>
    interface IDynamicParameters
Public NotInheritable Class CimCmdletAdapter
Inherits SessionBasedCmdletAdapter(Of CimInstance, CimSession)
Implements IDynamicParameters
Inheritance
Implements

Constructors

CimCmdletAdapter()

Properties

AsJob

Whether to wrap and emit the whole operation as a background job.

(Inherited from SessionBasedCmdletAdapter<TObjectInstance,TSession>)
CimSession

CimSession to operate on.

ClassName

Name of the class (from the object model handled by this ObjectModelWrapper) that is wrapped by the currently executing cmdlet.

(Inherited from CmdletAdapter<TObjectInstance>)
ClassVersion

Name of the class (from the object model handled by this ObjectModelWrapper) that is wrapped by the currently executing cmdlet. This value can be null (i.e. when ClassVersion attribute is omitted in the ps1xml)

(Inherited from CmdletAdapter<TObjectInstance>)
Cmdlet

Cmdlet that this ObjectModelWrapper is associated with.

(Inherited from CmdletAdapter<TObjectInstance>)
DefaultSession

Returns default sessions to use when the user doesn't specify the -Session cmdlet parameter.

(Inherited from SessionBasedCmdletAdapter<TObjectInstance,TSession>)
ModuleVersion

Module version.

(Inherited from CmdletAdapter<TObjectInstance>)
PrivateData

Private data from Cmdlet Definition XML (from <ObjectModelWrapperPrivateData> element)

(Inherited from CmdletAdapter<TObjectInstance>)
Session

Session to operate on.

(Inherited from SessionBasedCmdletAdapter<TObjectInstance,TSession>)
ThrottleLimit

Maximum number of remote connections that can remain active at any given time.

Methods

BeginProcessing()

Performs initialization of cmdlet execution.

(Inherited from SessionBasedCmdletAdapter<TObjectInstance,TSession>)
Dispose()

Releases resources associated with this object.

(Inherited from SessionBasedCmdletAdapter<TObjectInstance,TSession>)
Dispose(Boolean)

Releases resources associated with this object.

(Inherited from SessionBasedCmdletAdapter<TObjectInstance,TSession>)
EndProcessing()

Performs cleanup after cmdlet execution.

(Inherited from SessionBasedCmdletAdapter<TObjectInstance,TSession>)
GenerateParentJobName()

A new job name to use for the parent job that handles throttling of the child jobs that actually perform querying and method invocation.

(Inherited from SessionBasedCmdletAdapter<TObjectInstance,TSession>)
GetQueryBuilder()

Creates a query builder for CIM OM.

Initialize(PSCmdlet, String, String, Version, IDictionary<String,String>)

Class constructor.

(Inherited from CmdletAdapter<TObjectInstance>)
ProcessRecord(MethodInvocationInfo)

Invokes a static method in the object model.

(Inherited from SessionBasedCmdletAdapter<TObjectInstance,TSession>)
ProcessRecord(QueryBuilder, MethodInvocationInfo, Boolean)

Queries for instance and invokes an instance method.

(Inherited from SessionBasedCmdletAdapter<TObjectInstance,TSession>)
ProcessRecord(QueryBuilder)

Queries for object instances in the object model.

(Inherited from SessionBasedCmdletAdapter<TObjectInstance,TSession>)
ProcessRecord(TObjectInstance, MethodInvocationInfo, Boolean)

Invokes an instance method in the object model.

(Inherited from SessionBasedCmdletAdapter<TObjectInstance,TSession>)
StopProcessing()

Stops the parent job when called.

(Inherited from SessionBasedCmdletAdapter<TObjectInstance,TSession>)

Explicit Interface Implementations

IDynamicParameters.GetDynamicParameters()

Applies to