次の方法で共有


ArmRecoveryServicesBackupModelFactory.WorkloadItemResource メソッド

定義

WorkloadItemResource の新しいインスタンスを初期化します。

public static Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItemResource WorkloadItemResource (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItem properties = default, Azure.ETag? eTag = default);
static member WorkloadItemResource : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItem * Nullable<Azure.ETag> -> Azure.ResourceManager.RecoveryServicesBackup.Models.WorkloadItemResource
Public Shared Function WorkloadItemResource (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional properties As WorkloadItem = Nothing, Optional eTag As Nullable(Of ETag) = Nothing) As WorkloadItemResource

パラメーター

name
String

名前。

resourceType
ResourceType

resourceType。

systemData
SystemData

systemData。

tags
IDictionary<String,String>

タグ。

location
AzureLocation

場所。

properties
WorkloadItem

WorkloadItemResource プロパティ 基本クラスであることに注意 WorkloadItem してください。 シナリオによると、基底クラスの派生クラスをここで割り当てる必要があるか、このプロパティを使用可能な派生クラスのいずれかにキャストする必要があります。 使用可能な派生クラスには、、、VmWorkloadSapAseDatabaseWorkloadItemVmWorkloadSapAseSystemWorkloadItemVmWorkloadSapHanaSystemWorkloadItemVmWorkloadSapHanaDatabaseWorkloadItemVmWorkloadSqlDatabaseWorkloadItem、および がVmWorkloadSqlInstanceWorkloadItem含まれます。VmWorkloadItem

eTag
Nullable<ETag>

オプションの ETag。

戻り値

モック作成用の新しい WorkloadItemResource インスタンス。

適用対象