Delen via


DigitalTwinsModelFactory.DigitalTwinsModelData Method

Definition

Initializes a new instance of DigitalTwinsModelData.

public static Azure.DigitalTwins.Core.DigitalTwinsModelData DigitalTwinsModelData (System.Collections.Generic.IReadOnlyDictionary<string,string> languageDisplayNames = default, System.Collections.Generic.IReadOnlyDictionary<string,string> languageDescriptions = default, string id = default, DateTimeOffset? uploadedOn = default, bool? decommissioned = default, string dtdlModel = default);
static member DigitalTwinsModelData : System.Collections.Generic.IReadOnlyDictionary<string, string> * System.Collections.Generic.IReadOnlyDictionary<string, string> * string * Nullable<DateTimeOffset> * Nullable<bool> * string -> Azure.DigitalTwins.Core.DigitalTwinsModelData
Public Shared Function DigitalTwinsModelData (Optional languageDisplayNames As IReadOnlyDictionary(Of String, String) = Nothing, Optional languageDescriptions As IReadOnlyDictionary(Of String, String) = Nothing, Optional id As String = Nothing, Optional uploadedOn As Nullable(Of DateTimeOffset) = Nothing, Optional decommissioned As Nullable(Of Boolean) = Nothing, Optional dtdlModel As String = Nothing) As DigitalTwinsModelData

Parameters

languageDisplayNames
IReadOnlyDictionary<String,String>

A language map that contains the localized display names as specified in the model definition.

languageDescriptions
IReadOnlyDictionary<String,String>

A language map that contains the localized descriptions as specified in the model definition.

id
String

The id of the model as specified in the model definition.

uploadedOn
Nullable<DateTimeOffset>

The time the model was uploaded to the service.

decommissioned
Nullable<Boolean>

Indicates if the model is decommissioned. Decommissioned models cannot be referenced by newly created digital twins.

dtdlModel
String

The model definition.

Returns

A new DigitalTwinsModelData instance for mocking.

Applies to