DigitalTwinsModelFactory.DigitalTwinsModelData Method

Definition

public static Azure.DigitalTwins.Core.DigitalTwinsModelData DigitalTwinsModelData (System.Collections.Generic.IReadOnlyDictionary<string,string> languageDisplayNames, System.Collections.Generic.IReadOnlyDictionary<string,string> languageDescriptions, string id, DateTimeOffset? uploadedOn, bool? decommissioned, string dtdlModel);
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 (languageDisplayNames As IReadOnlyDictionary(Of String, String), languageDescriptions As IReadOnlyDictionary(Of String, String), id As String, uploadedOn As Nullable(Of DateTimeOffset), decommissioned As Nullable(Of Boolean), dtdlModel As String) As DigitalTwinsModelData

Parameters

languageDisplayNames
System.Collections.Generic.IReadOnlyDictionary<System.String,System.String>

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

languageDescriptions
System.Collections.Generic.IReadOnlyDictionary<System.String,System.String>

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

id
System.String

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

uploadedOn
System.Nullable<System.DateTimeOffset>

The date and time the model was uploaded to the service.

decommissioned
System.Nullable<System.Boolean>

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

dtdlModel
System.String

The model definition that conforms to Digital Twins Definition Language (DTDL) v2.

Returns

DigitalTwinsModelData

The new instance of DigitalTwinsModelData(IReadOnlyDictionary<String,String>, IReadOnlyDictionary<String, String>, String, Nullable<DateTimeOffset>, Nullable<Boolean>, String) to be used for mocking purposes.

Applies to