Share via


EnrollmentGroup(String, Attestation) コンストラクター

定義

EnrollmentGroup の新しいインスタンスを作成します。

public EnrollmentGroup (string enrollmentGroupId, Microsoft.Azure.Devices.Provisioning.Service.Attestation attestation);
new Microsoft.Azure.Devices.Provisioning.Service.EnrollmentGroup : string * Microsoft.Azure.Devices.Provisioning.Service.Attestation -> Microsoft.Azure.Devices.Provisioning.Service.EnrollmentGroup
Public Sub New (enrollmentGroupId As String, attestation As Attestation)

パラメーター

enrollmentGroupId
String

プロビジョニング サービスでこの enrollmentGroup を一意に識別する文字列。 null または空にすることはできません。

attestation
Attestation

Attestation構成証明メカニズムを持つ オブジェクト。

例外

指定 enrollmentGroupId された が null の場合。

指定 enrollmentGroupId された が空または空白の場合。

シリアル化すると、EnrollmentGroup は次の例のようになります。

{
    "enrollmentGroupId":"validEnrollmentGroupId",
    "attestation":{
        "type":"x509",
        "signingCertificates":{
            "primary":{
                "certificate":"[valid certificate]"
            }
        }
    }
}

注釈

このコンストラクターは、プロビジョニング サービスに必要な最小限の情報セットを使用して EnrollmentGroup オブジェクトのインスタンスを作成します。 有効な EnrollmentGroup には、この enrollmentGroup を一意に識別する enrollmentGroupId と、X509 が必要な構成証明メカニズムが含まれている必要があります。

他のパラメーターは、このオブジェクトのセッターを呼び出すことによって追加できます。

適用対象