共用方式為


ArmDevTestLabsModelFactory.DevTestLabAnnouncement Method

Definition

Initializes a new instance of DevTestLabAnnouncement.

public static Azure.ResourceManager.DevTestLabs.Models.DevTestLabAnnouncement DevTestLabAnnouncement (string title = default, string markdown = default, Azure.ResourceManager.DevTestLabs.Models.DevTestLabEnableStatus? enabled = default, DateTimeOffset? expireOn = default, bool? isExpired = default, string provisioningState = default, Guid? uniqueIdentifier = default);
static member DevTestLabAnnouncement : string * string * Nullable<Azure.ResourceManager.DevTestLabs.Models.DevTestLabEnableStatus> * Nullable<DateTimeOffset> * Nullable<bool> * string * Nullable<Guid> -> Azure.ResourceManager.DevTestLabs.Models.DevTestLabAnnouncement
Public Shared Function DevTestLabAnnouncement (Optional title As String = Nothing, Optional markdown As String = Nothing, Optional enabled As Nullable(Of DevTestLabEnableStatus) = Nothing, Optional expireOn As Nullable(Of DateTimeOffset) = Nothing, Optional isExpired As Nullable(Of Boolean) = Nothing, Optional provisioningState As String = Nothing, Optional uniqueIdentifier As Nullable(Of Guid) = Nothing) As DevTestLabAnnouncement

Parameters

title
String

The plain text title for the lab announcement.

markdown
String

The markdown text (if any) that this lab displays in the UI. If left empty/null, nothing will be shown.

enabled
Nullable<DevTestLabEnableStatus>

Is the lab announcement active/enabled at this time?.

expireOn
Nullable<DateTimeOffset>

The time at which the announcement expires (null for never).

isExpired
Nullable<Boolean>

Has this announcement expired?.

provisioningState
String

The provisioning status of the resource.

uniqueIdentifier
Nullable<Guid>

The unique immutable identifier of a resource (Guid).

Returns

A new DevTestLabAnnouncement instance for mocking.

Applies to