Share via


DevicePropertyFactory.CreateOnlineStatusProperty Method (OnlineStatus)

 

Create an OnlineStatusProperty object that contains information about the online status of a device.

Namespace:   Microsoft.WindowsServerSolutions.Common.Devices
Assembly:  DevicesOM (in DevicesOM.dll)

Syntax

public static OnlineStatusProperty CreateOnlineStatusProperty(
    OnlineStatus status
)
public:
static OnlineStatusProperty^ CreateOnlineStatusProperty(
    OnlineStatus status
)
Public Shared Function CreateOnlineStatusProperty (
    status As OnlineStatus
) As OnlineStatusProperty

Parameters

Return Value

Type: Microsoft.WindowsServerSolutions.Common.Devices.OnlineStatusProperty

An instance of OnlineStatusProperty.

Examples

The following code example shows how to create an OnlineStatusProperty object:

OnlineStatus status = OnlineStatus.Online;

// create the online status property
OnlineStatusProperty onlineStatusProperty = 
   DevicePropertyFactory.CreateOnlineStatusProperty(status);

Console.WriteLine("Status = {0}", onlineStatusProperty.Status);

// expected output:
// Status = Online

See Also

DevicePropertyFactory Class
Microsoft.WindowsServerSolutions.Common.Devices Namespace

Return to top