Partager via


WSManSessionOptions Class

 

Represents options of a CIM session that uses WSMan as the transport protocol.

Namespace:   Microsoft.Management.Infrastructure.Options
Assembly:  Microsoft.Management.Infrastructure (in Microsoft.Management.Infrastructure.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Management.Infrastructure.Options.CimSessionOptions
    Microsoft.Management.Infrastructure.Options.WSManSessionOptions

Syntax

public class WSManSessionOptions : CimSessionOptions
public ref class WSManSessionOptions : CimSessionOptions
type WSManSessionOptions = 
    class
        inherit CimSessionOptions
    end
Public Class WSManSessionOptions
    Inherits CimSessionOptions

Constructors

Name Description
System_CAPS_pubmethod WSManSessionOptions()

Creates and initializes a new instance of WSManSessionOptions using WSMan as the protocol for the CIM session options.

System_CAPS_pubmethod WSManSessionOptions(WSManSessionOptions)

Creates and initializes a new instance of WSManSessionOptions by making a detailed clone of an existing object.

Properties

Name Description
System_CAPS_pubproperty CertCACheck

Gets or sets the flag that determines whether the client should validate that the server certificate be signed by a trusted certification authority (CA).

System_CAPS_pubproperty CertCNCheck

Gets or sets the flag that determines whether the client should validate that the certificate common name (CN) of the server match the hostname of the server.

System_CAPS_pubproperty CertRevocationCheck

Gets or sets the flag that determines whether the client should validate the revocation status of the server certificate.

System_CAPS_pubproperty Culture

Gets or sets the data culture.(Inherited from CimSessionOptions.)

System_CAPS_pubproperty DestinationPort

Gets or sets the port to use to communicate to the destination.

System_CAPS_pubproperty EncodePortInServicePrincipalName

Gets or sets the flag that determines whether to encode the port in the service principal name (SPN) when establishing a connection.

System_CAPS_pubproperty HttpUrlPrefix

Gets or sets the HTTP URL prefix.

System_CAPS_pubproperty MaxEnvelopeSize

Gets or sets the maximum packet size for transports of the SOAP envelope.

System_CAPS_pubproperty NoEncryption

Gets or sets the flag that determines whether there is packet privacy (encryption).

System_CAPS_pubproperty PacketEncoding

Gets or sets the packet encoding mechanism.

System_CAPS_pubproperty ProxyType

Gets or sets the type of proxy settings to use when communicating to a destination through a proxy.

System_CAPS_pubproperty Timeout

Gets or sets the timeout interval value.(Inherited from CimSessionOptions.)

System_CAPS_pubproperty UICulture

Gets or sets the UI culture.(Inherited from CimSessionOptions.)

System_CAPS_pubproperty UseSsl

Gets or sets whether the client should use Secure Sockets Layer (SSL).

Methods

Name Description
System_CAPS_pubmethod AddDestinationCredentials(CimCredential)

Adds a destination credential.(Inherited from CimSessionOptions.)

System_CAPS_pubmethod AddProxyCredentials(CimCredential)

Adds CIM credentials to authenticate against a proxy.

System_CAPS_pubmethod Dispose()

Releases resources associated with this object.(Inherited from CimSessionOptions.)

System_CAPS_protmethod Dispose(Boolean)

Releases resources associated with this object.(Inherited from CimSessionOptions.)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod SetCustomOption(String, String)

Sets a custom option to a string value.(Inherited from CimSessionOptions.)

System_CAPS_pubmethod SetCustomOption(String, UInt32)

Sets a custom option to an integer value.(Inherited from CimSessionOptions.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod ICloneable.Clone()

Creates a new object that is a copy of the current instance.(Inherited from CimSessionOptions.)

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.Management.Infrastructure.Options Namespace

Return to top