Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpbcgr.Server_License_Error_Pdu_Valid_Client.Clone C# (CSharp) Метод

Clone() публичный Метод

Create an instance of the class that is identical to the current PDU.
public Clone ( ) : StackPacket
Результат StackPacket
        public override StackPacket Clone()
        {
            Server_License_Error_Pdu_Valid_Client cloneServerLicenseErrorPdu =
                new Server_License_Error_Pdu_Valid_Client(serverSessionContext);

            cloneServerLicenseErrorPdu.commonHeader = commonHeader.Clone();
            cloneServerLicenseErrorPdu.preamble = preamble;

            cloneServerLicenseErrorPdu.validClientMessage = validClientMessage;
            cloneServerLicenseErrorPdu.validClientMessage.bbErrorInfo.blobData =
                RdpbcgrUtility.CloneByteArray(validClientMessage.bbErrorInfo.blobData);

            return cloneServerLicenseErrorPdu;
        }