Gurux.DLMS.Objects.GXDLMSSecuritySetup.RemoveCertificateByEntity C# (CSharp) Méthode

RemoveCertificateByEntity() public méthode

Removes X.509 v3 certificate from the server using entity.
public RemoveCertificateByEntity ( Gurux.DLMS.GXDLMSClient client, CertificateEntity entity, CertificateType type, byte systemTitle ) : byte[][]
client Gurux.DLMS.GXDLMSClient DLMS client that is used to generate action.
entity CertificateEntity Certificate entity type.
type CertificateType Certificate type.
systemTitle byte System title.
Résultat byte[][]
        public byte[][] RemoveCertificateByEntity(GXDLMSClient client, CertificateEntity entity, CertificateType type, byte[] systemTitle)
        {
            GXByteBuffer bb = new GXByteBuffer();
            bb.SetUInt8(DataType.Structure);
            bb.SetUInt8(2);
            //Add enum
            bb.SetUInt8(DataType.Enum);
            bb.SetUInt8(0);
            //Add certificate_identification_by_entity
            bb.SetUInt8(DataType.Structure);
            bb.SetUInt8(3);
            //Add certificate_entity
            bb.SetUInt8(DataType.Enum);
            bb.SetUInt8(entity);
            //Add certificate_type
            bb.SetUInt8(DataType.Enum);
            bb.SetUInt8(type);
            //system_title
            GXCommon.SetData(client.Settings, bb, DataType.OctetString, systemTitle);
            return client.Method(this, 8, bb.Array(), DataType.OctetString);
        }