共用方式為


PSSessionConfiguration Class

Definition

InitialSessionStateProvider is used by 3rd parties to provide shell configuration on the remote server.

public ref class PSSessionConfiguration abstract : IDisposable
public abstract class PSSessionConfiguration : IDisposable
type PSSessionConfiguration = class
    interface IDisposable
Public MustInherit Class PSSessionConfiguration
Implements IDisposable
Inheritance
PSSessionConfiguration
Derived
Implements

Constructors

PSSessionConfiguration()

Methods

Dispose()

Dispose this configuration object. This will be called when a Runspace/RunspacePool created using InitialSessionState from this object is Closed.

Dispose(Boolean)
GetApplicationPrivateData(PSSenderInfo)

Derived classes can override this method to provide application private data that is going to be sent to the client and exposed via ApplicationPrivateData, GetApplicationPrivateData() and GetApplicationPrivateData()

GetInitialSessionState(PSSenderInfo)

Derived classes must override this to supply an InitialSessionState to be used to construct a Runspace for the user.

GetInitialSessionState(PSSessionConfigurationData, PSSenderInfo, String)
GetMaximumReceivedDataSizePerCommand(PSSenderInfo)

Total data (in bytes) that can be received from a remote machine targeted towards a command. If null, then the size is unlimited. Default is 50MB.

GetMaximumReceivedObjectSize(PSSenderInfo)

Maximum size (in bytes) of a deserialized object received from a remote machine. If null, then the size is unlimited. Default is 10MB.

Applies to