Serialize() public method

Serializes AUX_PERF_SESSIONINFO_V2 to a byte array
public Serialize ( ) : byte[]
return byte[]
        /// <summary>
        /// Composes buffer for AUX_PERF_SESSIONINFO_V2, refer to the definition of AUX_PERF_SESSIONINFO_V2 in this Open Specification
        /// </summary>
        /// <param name="reserved">Value for Reserved field in AUX_PERF_SESSIONINFO_V2</param>
        /// <returns>The byte array contains the AUX_PERF_SESSIONINFO_V2</returns>
        public static byte[] Compose_AUX_PERF_SESSIONINFO_V2(int reserved)
        {
            AUX_PERF_SESSIONINFO_v2 aux_perf_sessioninfo_v2 = new AUX_PERF_SESSIONINFO_v2
            {
                SessionID    = 0,
                Reserved     = (short)reserved,
                SessionGuid  = new byte[ConstValues.GuidByteSize],
                ConnectionID = 0
            };

            return(aux_perf_sessioninfo_v2.Serialize());
        }
 /// <summary>
 /// Composes buffer for AUX_PERF_SESSIONINFO_V2, refer to the definition of AUX_PERF_SESSIONINFO_V2 in this Open Specification
 /// </summary>
 /// <param name="reserved">Value for Reserved field in AUX_PERF_SESSIONINFO_V2</param>
 /// <returns>The byte array contains the AUX_PERF_SESSIONINFO_V2</returns>
 public static byte[] Compose_AUX_PERF_SESSIONINFO_V2(int reserved)
 {
     AUX_PERF_SESSIONINFO_v2 aux_perf_sessioninfo_v2 = new AUX_PERF_SESSIONINFO_v2
     {
         SessionID = 0,
         Reserved = (short)reserved,
         SessionGuid = new byte[ConstValues.GuidByteSize],
         ConnectionID = 0
     };
     return aux_perf_sessioninfo_v2.Serialize();
 }