Editar

Partilhar via


MsSnaStatus_ServiceTN5250 Class

The MsSnaStatus_ServiceTN5250 class represents a TN5250 service status.

Syntax

  
class MsSnaStatus_ServiceTN5250 : MsSnaStatus_Config  
{  
   string Name;  
   sint32 Status;  
   string StatusText;  
}  

Properties

Name
Data Type: String Qualifiers: Key Access Type: Read-Only

The service name. Name will be identical to the local computer name.

Status
Data Type: sint32 Access Type: Read-Only

The current status of the service. The following table describes the possible values for Status.

Value Description
0
1 Inactive
2 Pending
3 Stopping
4 Active

StatusText
Data Type: String Access Type: Read-Only

One of the status values.

Methods

Method Description
GetObject Retrieves the instance.
EnumerateInstances Enumerates all instances of the object.
ExecMethod Executes the specified method.
Start Starts the method.
Stop Stops the method.

For more information on GetObject, EnumerateInstances, and ExecMethod, see IWbemServices interface.

Requirements

Platforms: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows 11, and Windows 10

See Also

WmiSnaStatus WMI Provider Classes
Administration and Management Programmer's Guide