共用方式為


ArmDigitalTwinsModelFactory.DigitalTwinsNameResult Method

Definition

Initializes a new instance of DigitalTwinsNameResult.

public static Azure.ResourceManager.DigitalTwins.Models.DigitalTwinsNameResult DigitalTwinsNameResult (bool? isNameAvailable = default, string message = default, Azure.ResourceManager.DigitalTwins.Models.DigitalTwinsNameUnavailableReason? reason = default);
static member DigitalTwinsNameResult : Nullable<bool> * string * Nullable<Azure.ResourceManager.DigitalTwins.Models.DigitalTwinsNameUnavailableReason> -> Azure.ResourceManager.DigitalTwins.Models.DigitalTwinsNameResult
Public Shared Function DigitalTwinsNameResult (Optional isNameAvailable As Nullable(Of Boolean) = Nothing, Optional message As String = Nothing, Optional reason As Nullable(Of DigitalTwinsNameUnavailableReason) = Nothing) As DigitalTwinsNameResult

Parameters

isNameAvailable
Nullable<Boolean>

Specifies a Boolean value that indicates if the name is available.

message
String

Message indicating an unavailable name due to a conflict, or a description of the naming rules that are violated.

reason
Nullable<DigitalTwinsNameUnavailableReason>

Message providing the reason why the given name is invalid.

Returns

A new DigitalTwinsNameResult instance for mocking.

Applies to