Szerkesztés

Megosztás a következőn keresztül:


MsSna_ServiceSNA Class

Implements the SNA protocol, which contains the connections and LU resources.

The following syntax is simplified from MOF code.

Syntax

  
class MsSna_ServiceSNA : MsSna_Service  
{  
   String Name;  
   String Comment;  
   String ControlPoint;  
   String NetworkName;  
   String StatusText;  
   sint32 Status;  
};  

Properties

Name
Data Type: String
Qualifier: Key, MAXLEN(20) Access Type: Read-Only

The service name.

Comment
Data Type: StringQualifiers: MAXLEN(25) Access Type: Read/Write

An optional comment field.

ControlPoint
Data Type: StringQualifiers: MAXLEN(8) Access Type: Read/Write

The control point for this SNA node.

NetworkName
Data Type: StringQualifiers: MAXLEN(8) Access Type: Read/Write

The Network Name name for this SNA node.

StatusText
Data Type: StringAccess Type: Read-Only

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

Value Description
Not configured The service is not currently configured.
Inactive The service is inactive.
Stopping The service is in the process of stopping.
Active The service is active.
Out of Date The service is out-of-date.
Paused The service is paused.

Status
Data Type: sint32Access Type: Read-Only

The status of the service. The following table describes the status of the service:

Value Description
0 Not configured
1 Inactive
2 Inactive
3 Stopping
4 Active
5
6 Out-of-date
7 Paused
8
9

Methods

Method Description
Start Starts the service.
Stop Stops the service.
Pauses Pauses the service.
Resume Restarts a paused service.

Requirements

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

See Also

WMISNA WMI Provider Classes