你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Device Class

Definition

Device resource.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.DeviceTypeConverter))]
public class Device : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IDevice, Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.DeviceTypeConverter))>]
type Device = class
    interface IDevice
    interface IJsonSerializable
    interface ITrackedResource
    interface IResource
    interface IValidates
Public Class Device
Implements IDevice, IValidates
Inheritance
Device
Attributes
Implements

Constructors

Device()

Creates an new Device instance.

Properties

Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

Location

The geo-location where the resource lives

Name

The name of the resource

Property

Device properties.

ResourceGroupName

Gets the resource group name

SystemData

The system meta data relating to this resource.

Tag

Resource tags.

Type

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Device.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Device.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IDevice.

FromJsonString(String)

Creates a new instance of Device, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of Device into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Applies to